C# 클래스 VrSharp.VpPaletteEncoder

파일 보기 프로젝트 열기: nickworonekin/puyotools

보호된 프로퍼티들

프로퍼티 타입 설명
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