C# Class VrSharp.VrTextureEncoder

Afficher le fichier Open project: nickworonekin/puyotools

Protected Properties

Свойство Type Description
dataCodec VrDataCodec
decodedBitmap Bitmap
decodedData byte[]
globalIndex uint
hasGlobalIndex bool
initalized bool
paletteEncoder VpPaletteEncoder
pixelCodec VrPixelCodec
textureHeight ushort
texturePalette byte[][]
textureWidth ushort

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
BitmapToRaw ( Bitmap source ) : byte[]
BitmapToRawIndexed ( Bitmap source, int maxColors, byte &palette ) : byte[]
BitmapToRawResized ( Bitmap source, int size, int minSize ) : byte[]
EncodeTexture ( ) : MemoryStream

Private Methods

Méthode Description
HasValidDimensions ( int width, int height ) : bool
Initalize ( Bitmap source ) : void

Method Details

BitmapToRaw() protected méthode

protected BitmapToRaw ( Bitmap source ) : byte[]
source System.Drawing.Bitmap
Résultat byte[]

BitmapToRawIndexed() protected méthode

protected BitmapToRawIndexed ( Bitmap source, int maxColors, byte &palette ) : byte[]
source System.Drawing.Bitmap
maxColors int
palette byte
Résultat byte[]

BitmapToRawResized() protected méthode

protected BitmapToRawResized ( Bitmap source, int size, int minSize ) : byte[]
source System.Drawing.Bitmap
size int
minSize int
Résultat byte[]

EncodeTexture() protected abstract méthode

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

Save() public méthode

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

ToStream() public méthode

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

VrTextureEncoder() public méthode

public VrTextureEncoder ( Bitmap source ) : System
source Bitmap
Résultat System

VrTextureEncoder() public méthode

public VrTextureEncoder ( Stream source ) : System
source Stream
Résultat System

VrTextureEncoder() public méthode

public VrTextureEncoder ( Stream source, int length ) : System
source Stream
length int
Résultat System

VrTextureEncoder() public méthode

public VrTextureEncoder ( byte source ) : System
source byte
Résultat System

VrTextureEncoder() public méthode

public VrTextureEncoder ( byte source, int offset, int length ) : System
source byte
offset int
length int
Résultat System

VrTextureEncoder() public méthode

public VrTextureEncoder ( string file ) : System
file string
Résultat System

Property Details

dataCodec protected_oe property

protected VrDataCodec dataCodec
Résultat VrDataCodec

decodedBitmap protected_oe property

protected Bitmap decodedBitmap
Résultat Bitmap

decodedData protected_oe property

protected byte[] decodedData
Résultat byte[]

globalIndex protected_oe property

protected uint globalIndex
Résultat uint

hasGlobalIndex protected_oe property

protected bool hasGlobalIndex
Résultat bool

initalized protected_oe property

protected bool initalized
Résultat bool

paletteEncoder protected_oe property

protected VpPaletteEncoder paletteEncoder
Résultat VpPaletteEncoder

pixelCodec protected_oe property

protected VrPixelCodec pixelCodec
Résultat VrPixelCodec

textureHeight protected_oe property

protected ushort textureHeight
Résultat ushort

texturePalette protected_oe property

protected byte[][] texturePalette
Résultat byte[][]

textureWidth protected_oe property

protected ushort textureWidth
Résultat ushort