C# Class VrSharp.VrTexture

Afficher le fichier Open project: nickworonekin/puyotools

Protected Properties

Свойство 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

Méthodes publiques

Méthode 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 ( ) : Bitmap

Returns the decoded texture as a bitmap.

ToStream ( ) : MemoryStream

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

Méthodes protégées

Méthode Description
Initalize ( ) : void
SetPalette ( VrSharp.VpPalette palette ) : void

Set the palette data from an external palette file.

Private Methods

Méthode Description
DecodeMipmaps ( ) : byte[][]
DecodeTexture ( ) : byte[]

Method Details

Initalize() protected abstract méthode

protected abstract Initalize ( ) : void
Résultat void

MipmapsToArray() public méthode

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.
public MipmapsToArray ( ) : byte[][]
Résultat byte[][]

MipmapsToBitmap() public méthode

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.
public MipmapsToBitmap ( ) : System.Drawing.Bitmap[]
Résultat System.Drawing.Bitmap[]

MipmapsToStream() public méthode

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.
public MipmapsToStream ( ) : System.IO.MemoryStream[]
Résultat System.IO.MemoryStream[]

Save() public méthode

Saves the decoded texture to the specified stream.
public Save ( Stream destination ) : void
destination Stream The stream to save the texture to.
Résultat void

Save() public méthode

Saves the decoded texture to the specified file.
public Save ( string file ) : void
file string Name of the file to save the data to.
Résultat void

SetPalette() protected méthode

Set the palette data from an external palette file.
protected SetPalette ( VrSharp.VpPalette palette ) : void
palette VrSharp.VpPalette A VpPalette object
Résultat void

ToArray() public méthode

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

ToBitmap() public méthode

Returns the decoded texture as a bitmap.
public ToBitmap ( ) : Bitmap
Résultat System.Drawing.Bitmap

ToStream() public méthode

Returns the decoded texture as a stream containg a PNG.
public ToStream ( ) : MemoryStream
Résultat System.IO.MemoryStream

VrTexture() public méthode

public VrTexture ( Stream source ) : System
source Stream
Résultat System

VrTexture() public méthode

public VrTexture ( Stream source, int length ) : System
source Stream
length int
Résultat System

VrTexture() public méthode

public VrTexture ( byte source ) : System
source byte
Résultat System

VrTexture() public méthode

public VrTexture ( byte source, int offset, int length ) : System
source byte
offset int
length int
Résultat System

VrTexture() public méthode

public VrTexture ( string file ) : System
file string
Résultat System

Property Details

canDecode protected_oe property

protected bool canDecode
Résultat bool

dataCodec protected_oe property

protected VrDataCodec,VrSharp dataCodec
Résultat VrSharp.VrDataCodec

dataOffset protected_oe property

protected int dataOffset
Résultat int

encodedData protected_oe property

protected byte[] encodedData
Résultat byte[]

gbixOffset protected_oe property

protected int gbixOffset
Résultat int

globalIndex protected_oe property

protected uint globalIndex
Résultat uint

initalized protected_oe property

protected bool initalized
Résultat bool

mipmapOffsets protected_oe property

protected int[] mipmapOffsets
Résultat int[]

paletteEntries protected_oe property

protected int paletteEntries
Résultat int

paletteOffset protected_oe property

protected int paletteOffset
Résultat int

pixelCodec protected_oe property

protected VrPixelCodec,VrSharp pixelCodec
Résultat VrSharp.VrPixelCodec

pvrtOffset protected_oe property

protected int pvrtOffset
Résultat int

textureHeight protected_oe property

protected ushort textureHeight
Résultat ushort

textureWidth protected_oe property

protected ushort textureWidth
Résultat ushort