C# Class CrystalMpq.DataFormats.PaletteSurface

Inheritance: Surface
Afficher le fichier Open project: sgraf812/crystalmpq

Méthodes publiques

Méthode Description
Clone ( ) : object
CreateStream ( ) : Stream

Creates a stream for accessing the surface data.

The returned stream can be used for reading or modifying the surface data.

PaletteSurface ( ArgbColor palette, int width, int height, bool opaque = true, byte separateAlphaBitCount, bool alphaPremultiplied = false, bool sharePalette = false ) : System
PaletteSurface ( byte rawData, ArgbColor palette, int width, int height, bool opaque = true, byte separateAlphaBitCount, bool alphaPremultiplied = false, bool shareBuffer = false, bool sharePalette = false ) : System
ToArray ( ) : byte[]

Gets a copy of the buffer's contents.

Méthodes protégées

Méthode Description
CopyToArgbInternal ( SurfaceData surfaceData ) : void
LockInternal ( int &stride ) : IntPtr
UnlockInternal ( ) : void

Private Methods

Méthode Description
CopyToArgbAlpha1 ( SurfaceData surfaceData ) : void
CopyToArgbAlpha4 ( SurfaceData surfaceData ) : void
CopyToArgbAlpha8 ( SurfaceData surfaceData ) : void
CopyToArgbOpaque ( SurfaceData surfaceData ) : void
CopyToArgbTransparent ( SurfaceData surfaceData ) : void
GetAlphaBitCount ( bool opaque, byte separateAlphaBitCount ) : byte

Method Details

Clone() public méthode

public Clone ( ) : object
Résultat object

CopyToArgbInternal() protected méthode

protected CopyToArgbInternal ( SurfaceData surfaceData ) : void
surfaceData SurfaceData
Résultat void

CreateStream() public méthode

Creates a stream for accessing the surface data.
The returned stream can be used for reading or modifying the surface data.
public CreateStream ( ) : Stream
Résultat Stream

LockInternal() protected méthode

protected LockInternal ( int &stride ) : IntPtr
stride int
Résultat System.IntPtr

PaletteSurface() public méthode

public PaletteSurface ( ArgbColor palette, int width, int height, bool opaque = true, byte separateAlphaBitCount, bool alphaPremultiplied = false, bool sharePalette = false ) : System
palette ArgbColor
width int
height int
opaque bool
separateAlphaBitCount byte
alphaPremultiplied bool
sharePalette bool
Résultat System

PaletteSurface() public méthode

public PaletteSurface ( byte rawData, ArgbColor palette, int width, int height, bool opaque = true, byte separateAlphaBitCount, bool alphaPremultiplied = false, bool shareBuffer = false, bool sharePalette = false ) : System
rawData byte
palette ArgbColor
width int
height int
opaque bool
separateAlphaBitCount byte
alphaPremultiplied bool
shareBuffer bool
sharePalette bool
Résultat System

ToArray() public méthode

Gets a copy of the buffer's contents.
public ToArray ( ) : byte[]
Résultat byte[]

UnlockInternal() protected méthode

protected UnlockInternal ( ) : void
Résultat void