All Classes |Grouped Classes |Index

Class CL_PixelBufferRef

Pixel data reference class. More...

Derived from:

None

Derived by:

None

Group:

Display (Display)

#include <ClanLib/display.h>

Class Members:

Construction:

CL_PixelBufferRef

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_size

Returns the width and height of the buffer.

get_pitch

Returns the pitch (bytes per scanline).

get_data

Returns a pointer to the beginning of the pixel buffer.


Operations:

get_subimage

Get subimage.

copy

Create a copy of the pixelbuffer that doesn't share data with the original pixel buffer.

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.

to_format

Converts current buffer to a new pixel format and returns the result.

format

palette

width

height

pitch

data