Method | Description | |
---|---|---|
GimTextureEncoder ( |
Opens a texture to encode from a bitmap.
|
|
GimTextureEncoder ( Stream source, GimPaletteFormat paletteFormat, GimDataFormat dataFormat ) : System |
Opens a texture to encode from a stream.
|
|
GimTextureEncoder ( Stream source, int length, GimPaletteFormat paletteFormat, GimDataFormat dataFormat ) : System |
Opens a texture to encode from a stream.
|
|
GimTextureEncoder ( byte source, GimPaletteFormat paletteFormat, GimDataFormat dataFormat ) : System |
Opens a texture to encode from a byte array.
|
|
GimTextureEncoder ( byte source, int offset, int length, GimPaletteFormat paletteFormat, GimDataFormat dataFormat ) : System |
Opens a texture to encode from a byte array.
|
|
GimTextureEncoder ( string file, GimPaletteFormat paletteFormat, GimDataFormat dataFormat ) : System |
Opens a texture to encode from a file.
|
|
Save ( Stream destination ) : void |
Saves the encoded texture to the specified stream.
|
|
Save ( string path ) : void |
Saves the encoded texture to the specified path.
|
|
ToArray ( ) : byte[] |
Returns the encoded texture as a byte array.
|
|
ToStream ( ) : |
Returns the encoded texture as a stream.
|
Method | Description | |
---|---|---|
BitmapToRaw ( |
||
BitmapToRawIndexed ( |
||
EncodeTexture ( ) : |
||
HasValidDimensions ( int width, int height ) : bool | ||
Initalize ( |
public GimTextureEncoder ( |
||
source | Bitmap to encode. | |
paletteFormat | GimPaletteFormat | |
dataFormat | GimDataFormat | Data format to encode the texture to. |
return | System |
public GimTextureEncoder ( Stream source, GimPaletteFormat paletteFormat, GimDataFormat dataFormat ) : System | ||
source | Stream | Stream that contains the texture data. |
paletteFormat | GimPaletteFormat | |
dataFormat | GimDataFormat | Data format to encode the texture to. |
return | System |
public GimTextureEncoder ( Stream source, int length, GimPaletteFormat paletteFormat, GimDataFormat dataFormat ) : System | ||
source | Stream | Stream that contains the texture data. |
length | int | Number of bytes to read. |
paletteFormat | GimPaletteFormat | |
dataFormat | GimDataFormat | Data format to encode the texture to. |
return | System |
public GimTextureEncoder ( byte source, GimPaletteFormat paletteFormat, GimDataFormat dataFormat ) : System | ||
source | byte | Byte array that contains the texture data. |
paletteFormat | GimPaletteFormat | |
dataFormat | GimDataFormat | Data format to encode the texture to. |
return | System |
public GimTextureEncoder ( byte source, int offset, int length, GimPaletteFormat paletteFormat, GimDataFormat dataFormat ) : 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. |
paletteFormat | GimPaletteFormat | |
dataFormat | GimDataFormat | Data format to encode the texture to. |
return | System |
public GimTextureEncoder ( string file, GimPaletteFormat paletteFormat, GimDataFormat dataFormat ) : System | ||
file | string | Filename of the file that contains the texture data. |
paletteFormat | GimPaletteFormat | |
dataFormat | GimDataFormat | Data format to encode the texture to. |
return | System |
public Save ( Stream destination ) : void | ||
destination | Stream | The stream to save the texture to. |
return | void |
public Save ( string path ) : void | ||
path | string | Name of the file to save the data to. |
return | void |