C# Класс VrSharp.VpPaletteEncoder

Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
decodedPalette byte[][]
paletteEntries ushort
pixelCodec VrSharp.VrPixelCodec

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
EncodePalette ( ) : MemoryStream

Приватные методы

Метод Описание
VpPaletteEncoder ( byte palette, ushort numColors, VrSharp.VrPixelCodec pixelCodec ) : System

Описание методов

EncodePalette() защищенный абстрактный Метод

protected abstract EncodePalette ( ) : MemoryStream
Результат System.IO.MemoryStream

Save() публичный Метод

Saves the encoded palette to the specified stream.
public Save ( Stream destination ) : void
destination Stream The stream to save the texture to.
Результат void

Save() публичный Метод

Saves the encoded palette to the specified path.
public Save ( string path ) : void
path string Name of the file to save the data to.
Результат void

ToArray() публичный Метод

Returns the encoded palette as a byte array.
public ToArray ( ) : byte[]
Результат byte[]

ToStream() публичный Метод

Returns the encoded palette as a stream.
public ToStream ( ) : MemoryStream
Результат System.IO.MemoryStream

Описание свойств

decodedPalette защищенное свойство

protected byte[][] decodedPalette
Результат byte[][]

paletteEntries защищенное свойство

protected ushort paletteEntries
Результат ushort

pixelCodec защищенное свойство

protected VrPixelCodec,VrSharp pixelCodec
Результат VrSharp.VrPixelCodec