C# Класс Sparrow.ResourceLoading.TextureLoader

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
_context global::Android.Content.Context

Защищенные свойства (Protected)

Свойство Тип Описание
_glTexture Sparrow.Textures.GLTexture
_isLoaded bool

Открытые методы

Метод Описание
LoadAndroidResource ( int AndroidResourceId ) : GLTexture

Loads an image based on resource ID; only avaiable on Andoid. Note that the resource will be scaled based on screen DPI if you put it into the drawable folder. If you want to avoid this, put it into the drawable-nodpi folder.

LoadFromStream ( Stream stream ) : GLTexture
LoadLocalImage ( string pathToFile ) : GLTexture
LoadLocalImageAsync ( string pathToFile ) : TextureLoader
LoadRemoteImage ( string remoteURL ) : TextureLoader

Защищенные методы

Метод Описание
GenerateTexture ( Bitmap bitmap ) : void
LoadTexture ( UIImage inImage ) : void

Приватные методы

Метод Описание
GenerateTexture ( UIImage image ) : void
LoadLocalBitmapAsync ( string path ) : void
LoadRemoteImageAsync ( string url ) : void
RGBToBGR ( Bitmap bmp ) : Bitmap

Описание методов

GenerateTexture() защищенный Метод

protected GenerateTexture ( Bitmap bitmap ) : void
bitmap System.Drawing.Bitmap
Результат void

LoadAndroidResource() публичный Метод

Loads an image based on resource ID; only avaiable on Andoid. Note that the resource will be scaled based on screen DPI if you put it into the drawable folder. If you want to avoid this, put it into the drawable-nodpi folder.
public LoadAndroidResource ( int AndroidResourceId ) : GLTexture
AndroidResourceId int
Результат Sparrow.Textures.GLTexture

LoadFromStream() публичный Метод

public LoadFromStream ( Stream stream ) : GLTexture
stream Stream
Результат Sparrow.Textures.GLTexture

LoadLocalImage() публичный Метод

public LoadLocalImage ( string pathToFile ) : GLTexture
pathToFile string
Результат Sparrow.Textures.GLTexture

LoadLocalImageAsync() публичный Метод

public LoadLocalImageAsync ( string pathToFile ) : TextureLoader
pathToFile string
Результат TextureLoader

LoadRemoteImage() публичный Метод

public LoadRemoteImage ( string remoteURL ) : TextureLoader
remoteURL string
Результат TextureLoader

LoadTexture() защищенный Метод

protected LoadTexture ( UIImage inImage ) : void
inImage UIImage
Результат void

Описание свойств

_context публичное статическое свойство

public static global::Android.Content.Context _context
Результат global::Android.Content.Context

_glTexture защищенное свойство

protected GLTexture,Sparrow.Textures _glTexture
Результат Sparrow.Textures.GLTexture

_isLoaded защищенное свойство

protected bool _isLoaded
Результат bool