C# 클래스 VrSharp.VrTextureEncoder

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

보호된 프로퍼티들

프로퍼티 타입 설명
dataCodec VrDataCodec
decodedBitmap Bitmap
decodedData byte[]
globalIndex uint
hasGlobalIndex bool
initalized bool
paletteEncoder VpPaletteEncoder
pixelCodec VrPixelCodec
textureHeight ushort
texturePalette byte[][]
textureWidth ushort

공개 메소드들

메소드 설명
Save ( Stream destination ) : void

Saves the encoded texture to the specified stream.

Save ( string path ) : void

Saves the encoded texture to the specified path.

ToArray ( ) : byte[]

Returns the encoded texture as a byte array.

ToStream ( ) : MemoryStream

Returns the encoded texture as a stream.

VrTextureEncoder ( Bitmap source ) : System
VrTextureEncoder ( Stream source ) : System
VrTextureEncoder ( Stream source, int length ) : System
VrTextureEncoder ( byte source ) : System
VrTextureEncoder ( byte source, int offset, int length ) : System
VrTextureEncoder ( string file ) : System

보호된 메소드들

메소드 설명
BitmapToRaw ( Bitmap source ) : byte[]
BitmapToRawIndexed ( Bitmap source, int maxColors, byte &palette ) : byte[]
BitmapToRawResized ( Bitmap source, int size, int minSize ) : byte[]
EncodeTexture ( ) : MemoryStream

비공개 메소드들

메소드 설명
HasValidDimensions ( int width, int height ) : bool
Initalize ( Bitmap source ) : void

메소드 상세

BitmapToRaw() 보호된 메소드

protected BitmapToRaw ( Bitmap source ) : byte[]
source System.Drawing.Bitmap
리턴 byte[]

BitmapToRawIndexed() 보호된 메소드

protected BitmapToRawIndexed ( Bitmap source, int maxColors, byte &palette ) : byte[]
source System.Drawing.Bitmap
maxColors int
palette byte
리턴 byte[]

BitmapToRawResized() 보호된 메소드

protected BitmapToRawResized ( Bitmap source, int size, int minSize ) : byte[]
source System.Drawing.Bitmap
size int
minSize int
리턴 byte[]

EncodeTexture() 보호된 추상적인 메소드

protected abstract EncodeTexture ( ) : MemoryStream
리턴 System.IO.MemoryStream

Save() 공개 메소드

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

Save() 공개 메소드

Saves the encoded texture 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 texture as a byte array.
public ToArray ( ) : byte[]
리턴 byte[]

ToStream() 공개 메소드

Returns the encoded texture as a stream.
public ToStream ( ) : MemoryStream
리턴 MemoryStream

VrTextureEncoder() 공개 메소드

public VrTextureEncoder ( Bitmap source ) : System
source Bitmap
리턴 System

VrTextureEncoder() 공개 메소드

public VrTextureEncoder ( Stream source ) : System
source Stream
리턴 System

VrTextureEncoder() 공개 메소드

public VrTextureEncoder ( Stream source, int length ) : System
source Stream
length int
리턴 System

VrTextureEncoder() 공개 메소드

public VrTextureEncoder ( byte source ) : System
source byte
리턴 System

VrTextureEncoder() 공개 메소드

public VrTextureEncoder ( byte source, int offset, int length ) : System
source byte
offset int
length int
리턴 System

VrTextureEncoder() 공개 메소드

public VrTextureEncoder ( string file ) : System
file string
리턴 System

프로퍼티 상세

dataCodec 보호되어 있는 프로퍼티

protected VrDataCodec dataCodec
리턴 VrDataCodec

decodedBitmap 보호되어 있는 프로퍼티

protected Bitmap decodedBitmap
리턴 Bitmap

decodedData 보호되어 있는 프로퍼티

protected byte[] decodedData
리턴 byte[]

globalIndex 보호되어 있는 프로퍼티

protected uint globalIndex
리턴 uint

hasGlobalIndex 보호되어 있는 프로퍼티

protected bool hasGlobalIndex
리턴 bool

initalized 보호되어 있는 프로퍼티

protected bool initalized
리턴 bool

paletteEncoder 보호되어 있는 프로퍼티

protected VpPaletteEncoder paletteEncoder
리턴 VpPaletteEncoder

pixelCodec 보호되어 있는 프로퍼티

protected VrPixelCodec pixelCodec
리턴 VrPixelCodec

textureHeight 보호되어 있는 프로퍼티

protected ushort textureHeight
리턴 ushort

texturePalette 보호되어 있는 프로퍼티

protected byte[][] texturePalette
리턴 byte[][]

textureWidth 보호되어 있는 프로퍼티

protected ushort textureWidth
리턴 ushort