C# Class Sparrow.ResourceLoading.TextureLoader

Afficher le fichier Open project: fmotagarcia/sparrow-sharp Class Usage Examples

Méthodes publiques

Свойство Type Description
_context global::Android.Content.Context

Protected Properties

Свойство Type Description
_glTexture Sparrow.Textures.GLTexture
_isLoaded bool

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
GenerateTexture ( Bitmap bitmap ) : void
LoadTexture ( UIImage inImage ) : void

Private Methods

Méthode Description
GenerateTexture ( UIImage image ) : void
LoadLocalBitmapAsync ( string path ) : void
LoadRemoteImageAsync ( string url ) : void
RGBToBGR ( Bitmap bmp ) : Bitmap

Method Details

GenerateTexture() protected méthode

protected GenerateTexture ( Bitmap bitmap ) : void
bitmap System.Drawing.Bitmap
Résultat void

LoadAndroidResource() public méthode

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
Résultat Sparrow.Textures.GLTexture

LoadFromStream() public méthode

public LoadFromStream ( Stream stream ) : GLTexture
stream Stream
Résultat Sparrow.Textures.GLTexture

LoadLocalImage() public méthode

public LoadLocalImage ( string pathToFile ) : GLTexture
pathToFile string
Résultat Sparrow.Textures.GLTexture

LoadLocalImageAsync() public méthode

public LoadLocalImageAsync ( string pathToFile ) : TextureLoader
pathToFile string
Résultat TextureLoader

LoadRemoteImage() public méthode

public LoadRemoteImage ( string remoteURL ) : TextureLoader
remoteURL string
Résultat TextureLoader

LoadTexture() protected méthode

protected LoadTexture ( UIImage inImage ) : void
inImage UIImage
Résultat void

Property Details

_context public_oe static_oe property

public static global::Android.Content.Context _context
Résultat global::Android.Content.Context

_glTexture protected_oe property

protected GLTexture,Sparrow.Textures _glTexture
Résultat Sparrow.Textures.GLTexture

_isLoaded protected_oe property

protected bool _isLoaded
Résultat bool