C# Class CSharpGL.DIBSection

device-independent bitmap
Inheritance: IDisposable
Show file Open project: bitzhuwei/CSharpGL Class Usage Examples

Protected Properties

Property Type Description
bits System.IntPtr

Public Methods

Method Description
Create ( IntPtr deviceContext, int width, int height, int bitCount ) : bool

Creates the specified width.

DestroyBitmap ( ) : void

Destroys this instance.

Resize ( int width, int height, int bitCount ) : void

Resizes the section.

Protected Methods

Method Description
SetPixelFormat ( IntPtr hDC, int bitCount ) : bool

This function sets the pixel format of the underlying bitmap.

Method Details

Create() public method

Creates the specified width.
public Create ( IntPtr deviceContext, int width, int height, int bitCount ) : bool
deviceContext System.IntPtr
width int The width.
height int The height.
bitCount int The bit count.
return bool

DestroyBitmap() public method

Destroys this instance.
public DestroyBitmap ( ) : void
return void

Resize() public method

Resizes the section.
public Resize ( int width, int height, int bitCount ) : void
width int The width.
height int The height.
bitCount int The bit count.
return void

SetPixelFormat() protected method

This function sets the pixel format of the underlying bitmap.
protected SetPixelFormat ( IntPtr hDC, int bitCount ) : bool
hDC System.IntPtr
bitCount int The bitcount.
return bool

Property Details

bits protected property

The parent dc. The bits.
protected IntPtr,System bits
return System.IntPtr