C# Class SimplePaletteQuantizer.Helpers.Pixel

This is a pixel format independent pixel.
Inheritance: IDisposable
显示文件 Open project: RHY3756547/FreeSO Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Pixel ( ImageBuffer parent ) : System

Initializes a new instance of the Pixel struct.

ReadData ( Byte buffer, Int32 offset ) : void

Reads the data.

ReadRawData ( IntPtr imagePointer ) : void

Reads the raw data.

Update ( Int32 x, Int32 y ) : void
WriteData ( Byte buffer, Int32 offset ) : void

Writes the data.

WriteRawData ( IntPtr imagePointer ) : void

Writes the raw data.

Private Methods

Method Description
GetIndexedType ( PixelFormat pixelFormat ) : Type

Gets the type of the indexed pixel format.

GetNonIndexedType ( PixelFormat pixelFormat ) : Type

Gets the type of the non-indexed pixel format.

Initialize ( ) : void
MarshalToPointer ( Object data ) : IntPtr

Method Details

Dispose() public method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
return void

Pixel() public method

Initializes a new instance of the Pixel struct.
public Pixel ( ImageBuffer parent ) : System
parent ImageBuffer
return System

ReadData() public method

Reads the data.
public ReadData ( Byte buffer, Int32 offset ) : void
buffer Byte The buffer.
offset System.Int32 The offset.
return void

ReadRawData() public method

Reads the raw data.
public ReadRawData ( IntPtr imagePointer ) : void
imagePointer System.IntPtr The image pointer.
return void

Update() public method

public Update ( Int32 x, Int32 y ) : void
x System.Int32 The X coordinate.
y System.Int32 The Y coordinate.
return void

WriteData() public method

Writes the data.
public WriteData ( Byte buffer, Int32 offset ) : void
buffer Byte The buffer.
offset System.Int32 The offset.
return void

WriteRawData() public method

Writes the raw data.
public WriteRawData ( IntPtr imagePointer ) : void
imagePointer System.IntPtr The image pointer.
return void