Home | All Classes | Grouped Classes | Index | Search

Class CL_PixelBuffer

Pixel data access. More...

Derived from: none
Derived by: CL_DeviceContextBuffer CL_JPEGProvider CL_PCXProvider CL_PNGProvider CL_TargaProvider
Group: Display (Display 2D)

#include <ClanLib/display.h>

Construction:

CL_PixelBuffer

Constructs a pixel buffer.

Attributes:

get_format

Returns the pixel format of the pixel buffer.

get_palette

Returns the palette of the pixel buffer.

get_width

Returns the buffer width.

get_height

Returns the buffer height.

get_pitch

Returns the pitch (bytes per scanline).

get_gc

Returns the graphic context of the pixel buffer.

get_data

Returns a pointer to the beginning of the pixel buffer. Pointer is only valid inside a lock/unlock session.

Operations:

operator =

Copy assignment operator.

lock

Locks the pixel buffer, making calls to get_data() valid.

unlock

Unlocks the pixelbuffer.

convert

Convert pixel buffer to the pixel format of the target buffer, storing the result in the target buffer.

convert_line

Convert one line of pixel data to target buffer.

Implementation:

impl

Pixel data implementation.

Detailed description:



Questions or comments, write to the
ClanLib mailing list.