C# Class VrSharp.VpPaletteEncoder

ファイルを表示 Open project: nickworonekin/puyotools

Protected Properties

Property Type Description
decodedPalette byte[][]
paletteEntries ushort
pixelCodec VrSharp.VrPixelCodec

Public Methods

Method 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.

Protected Methods

Method Description
EncodePalette ( ) : MemoryStream

Private Methods

Method Description
VpPaletteEncoder ( byte palette, ushort numColors, VrSharp.VrPixelCodec pixelCodec ) : System

Method Details

EncodePalette() protected abstract method

protected abstract EncodePalette ( ) : MemoryStream
return System.IO.MemoryStream

Save() public method

Saves the encoded palette to the specified stream.
public Save ( Stream destination ) : void
destination Stream The stream to save the texture to.
return void

Save() public method

Saves the encoded palette to the specified path.
public Save ( string path ) : void
path string Name of the file to save the data to.
return void

ToArray() public method

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

ToStream() public method

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

Property Details

decodedPalette protected_oe property

protected byte[][] decodedPalette
return byte[][]

paletteEntries protected_oe property

protected ushort paletteEntries
return ushort

pixelCodec protected_oe property

protected VrPixelCodec,VrSharp pixelCodec
return VrSharp.VrPixelCodec