C# Class CrystalMpq.DataFormats.PaletteSurface

Inheritance: Surface
显示文件 Open project: sgraf812/crystalmpq

Public Methods

Method 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.

Protected Methods

Method Description
CopyToArgbInternal ( SurfaceData surfaceData ) : void
LockInternal ( int &stride ) : IntPtr
UnlockInternal ( ) : void

Private Methods

Method 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 method

public Clone ( ) : object
return object

CopyToArgbInternal() protected method

protected CopyToArgbInternal ( SurfaceData surfaceData ) : void
surfaceData SurfaceData
return void

CreateStream() public method

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

LockInternal() protected method

protected LockInternal ( int &stride ) : IntPtr
stride int
return System.IntPtr

PaletteSurface() public method

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
return System

PaletteSurface() public method

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
return System

ToArray() public method

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

UnlockInternal() protected method

protected UnlockInternal ( ) : void
return void