C# Class VrSharp.VpPaletteEncoder

Afficher le fichier Open project: nickworonekin/puyotools

Protected Properties

Свойство Type Description
decodedPalette byte[][]
paletteEntries ushort
pixelCodec VrSharp.VrPixelCodec

Méthodes publiques

Méthode Description
Save ( Stream destination ) : void

Saves the encoded palette to the specified stream.

Save ( string path ) : void

Saves the encoded palette to the specified path.

ToArray ( ) : byte[]

Returns the encoded palette as a byte array.

ToStream ( ) : MemoryStream

Returns the encoded palette as a stream.

Méthodes protégées

Méthode Description
EncodePalette ( ) : MemoryStream

Private Methods

Méthode Description
VpPaletteEncoder ( byte palette, ushort numColors, VrSharp.VrPixelCodec pixelCodec ) : System

Method Details

EncodePalette() protected abstract méthode

protected abstract EncodePalette ( ) : MemoryStream
Résultat System.IO.MemoryStream

Save() public méthode

Saves the encoded palette 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 encoded palette to the specified path.
public Save ( string path ) : void
path string Name of the file to save the data to.
Résultat void

ToArray() public méthode

Returns the encoded palette as a byte array.
public ToArray ( ) : byte[]
Résultat byte[]

ToStream() public méthode

Returns the encoded palette as a stream.
public ToStream ( ) : MemoryStream
Résultat System.IO.MemoryStream

Property Details

decodedPalette protected_oe property

protected byte[][] decodedPalette
Résultat byte[][]

paletteEntries protected_oe property

protected ushort paletteEntries
Résultat ushort

pixelCodec protected_oe property

protected VrPixelCodec,VrSharp pixelCodec
Résultat VrSharp.VrPixelCodec