C# 클래스 Sparrow.ResourceLoading.TextureLoader

파일 보기 프로젝트 열기: fmotagarcia/sparrow-sharp 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
_context global::Android.Content.Context

보호된 프로퍼티들

프로퍼티 타입 설명
_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