Property | Type | Description | |
---|---|---|---|
canDecode | bool | ||
dataCodec | VrSharp.VrDataCodec | ||
dataOffset | int | ||
encodedData | byte[] | ||
gbixOffset | int | ||
globalIndex | uint | ||
initalized | bool | ||
mipmapOffsets | int[] | ||
paletteEntries | int | ||
paletteOffset | int | ||
pixelCodec | VrSharp.VrPixelCodec | ||
pvrtOffset | int | ||
textureHeight | ushort | ||
textureWidth | ushort |
Method | Description | |
---|---|---|
MipmapsToArray ( ) : byte[][] |
Returns the mipmaps of a texture as an array of byte arrays. The first index will contain the largest, original sized texture and the last index will contain the smallest texture.
|
|
MipmapsToBitmap ( ) : System.Drawing.Bitmap[] |
Returns the mipmaps of a texture as an array of bitmaps. The first index will contain the largest, original sized texture and the last index will contain the smallest texture.
|
|
MipmapsToStream ( ) : System.IO.MemoryStream[] |
Returns the mipmaps of a texture as an array of streams. The first index will contain the largest, original sized texture and the last index will contain the smallest 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 ( ) : |
Returns the decoded texture as a bitmap.
|
|
ToStream ( ) : |
Returns the decoded texture as a stream containg a PNG.
|
|
VrTexture ( Stream source ) : System | ||
VrTexture ( Stream source, int length ) : System | ||
VrTexture ( byte source ) : System | ||
VrTexture ( byte source, int offset, int length ) : System | ||
VrTexture ( string file ) : System |
Method | Description | |
---|---|---|
Initalize ( ) : void | ||
SetPalette ( VrSharp.VpPalette palette ) : void |
Set the palette data from an external palette file.
|
Method | Description | |
---|---|---|
DecodeMipmaps ( ) : byte[][] | ||
DecodeTexture ( ) : byte[] |
public MipmapsToBitmap ( ) : System.Drawing.Bitmap[] | ||
return | System.Drawing.Bitmap[] |
public MipmapsToStream ( ) : System.IO.MemoryStream[] | ||
return | System.IO.MemoryStream[] |
public Save ( Stream destination ) : void | ||
destination | Stream | The stream to save the texture to. |
return | void |
public Save ( string file ) : void | ||
file | string | Name of the file to save the data to. |
return | void |
protected SetPalette ( VrSharp.VpPalette palette ) : void | ||
palette | VrSharp.VpPalette | A VpPalette object |
return | void |
public VrTexture ( Stream source, int length ) : System | ||
source | Stream | |
length | int | |
return | System |
public VrTexture ( byte source, int offset, int length ) : System | ||
source | byte | |
offset | int | |
length | int | |
return | System |
protected VrPixelCodec,VrSharp pixelCodec | ||
return | VrSharp.VrPixelCodec |