C# 클래스 GimSharp.GimTexture

파일 보기 프로젝트 열기: nickworonekin/puyotools 1 사용 예제들

공개 메소드들

메소드 설명
GimTexture ( Stream source ) : System

Open a GIM texture from a stream.

GimTexture ( Stream source, int length ) : System

Open a GIM texture from a stream.

GimTexture ( byte source ) : System

Open a GIM texture from a byte array.

GimTexture ( byte source, int offset, int length ) : System

Open a GIM texture from a byte array.

GimTexture ( string file ) : System

Open a GIM texture from a file.

Is ( Stream source ) : bool

Determines if this is a GIM texture.

Is ( Stream source, int length ) : bool

Determines if this is a GIM texture.

Is ( byte source ) : bool

Determines if this is a GIM texture.

Is ( byte source, int offset, int length ) : bool

Determines if this is a GIM texture.

Is ( string file ) : bool

Determines if this is a GIM texture.

Save ( Stream destination ) : void

Saves the decoded texture to the specified stream.

Save ( string file ) : void

Saves the decoded texture to the specified file.

ToArray ( ) : byte[]

Returns the decoded texture as an array containg raw 32-bit ARGB data.

ToBitmap ( ) : Bitmap

Returns the decoded texture as a bitmap.

ToStream ( ) : MemoryStream

Returns the decoded texture as a stream containg a PNG.

비공개 메소드들

메소드 설명
DecodeTexture ( ) : byte[]
Initalize ( ) : void

메소드 상세

GimTexture() 공개 메소드

Open a GIM texture from a stream.
public GimTexture ( Stream source ) : System
source Stream Stream that contains the texture data.
리턴 System

GimTexture() 공개 메소드

Open a GIM texture from a stream.
public GimTexture ( Stream source, int length ) : System
source Stream Stream that contains the texture data.
length int Number of bytes to read.
리턴 System

GimTexture() 공개 메소드

Open a GIM texture from a byte array.
public GimTexture ( byte source ) : System
source byte Byte array that contains the texture data.
리턴 System

GimTexture() 공개 메소드

Open a GIM texture from a byte array.
public GimTexture ( byte source, int offset, int length ) : System
source byte Byte array that contains the texture data.
offset int Offset of the texture in the array.
length int Number of bytes to read.
리턴 System

GimTexture() 공개 메소드

Open a GIM texture from a file.
public GimTexture ( string file ) : System
file string Filename of the file that contains the texture data.
리턴 System

Is() 공개 정적인 메소드

Determines if this is a GIM texture.
public static Is ( Stream source ) : bool
source Stream The stream to read from. The stream position is not changed.
리턴 bool

Is() 공개 정적인 메소드

Determines if this is a GIM texture.
public static Is ( Stream source, int length ) : bool
source Stream The stream to read from. The stream position is not changed.
length int Number of bytes to read.
리턴 bool

Is() 공개 정적인 메소드

Determines if this is a GIM texture.
public static Is ( byte source ) : bool
source byte Byte array containing the data.
리턴 bool

Is() 공개 정적인 메소드

Determines if this is a GIM texture.
public static Is ( byte source, int offset, int length ) : bool
source byte Byte array containing the data.
offset int The offset in the byte array to start at.
length int Length of the data (in bytes).
리턴 bool

Is() 공개 정적인 메소드

Determines if this is a GIM texture.
public static Is ( string file ) : bool
file string Filename of the file that contains the data.
리턴 bool

Save() 공개 메소드

Saves the decoded texture to the specified stream.
public Save ( Stream destination ) : void
destination Stream The stream to save the texture to.
리턴 void

Save() 공개 메소드

Saves the decoded texture to the specified file.
public Save ( string file ) : void
file string Name of the file to save the data to.
리턴 void

ToArray() 공개 메소드

Returns the decoded texture as an array containg raw 32-bit ARGB data.
public ToArray ( ) : byte[]
리턴 byte[]

ToBitmap() 공개 메소드

Returns the decoded texture as a bitmap.
public ToBitmap ( ) : Bitmap
리턴 System.Drawing.Bitmap

ToStream() 공개 메소드

Returns the decoded texture as a stream containg a PNG.
public ToStream ( ) : MemoryStream
리턴 System.IO.MemoryStream