Home | All Classes | Grouped Classes | Index | Search
Pixel data access. More...
Derived from:
none
Derived by:
CL_BMPProvider
CL_DeviceContextBuffer
CL_JPEGProvider
CL_PCXProvider
CL_PNGProvider
CL_TargaProvider
Group: Display (Display 2D)
#include <ClanLib/display.h>
Construction:
Constructs a pixel buffer. |
Attributes:
Returns the pixel format of the pixel buffer. | |
Returns the palette of the pixel buffer. | |
Returns the buffer width. | |
Returns the buffer height. | |
Returns the pitch (bytes per scanline). | |
Returns a pointer to the beginning of the pixel buffer. Pointer is only valid inside a lock/unlock session. | |
Returns the pixel at coordinates x and y. Only valid within a lock/unlock session. |
Operations:
Copy assignment operator. | |
Return true if the CL_PixelBuffer is valid and useable | |
Locks the pixel buffer, making calls to get_data() valid. | |
Unlocks the pixelbuffer. | |
Convert pixel buffer to the pixel format of the target buffer, storing the result in the target buffer. | |
Convert one line of pixel data to target buffer. | |
Converts current buffer to a new pixel format and returns the result. | |
Sets a new colorkey without converting the buffer. | |
Draw a pixel at (x, y) using the specified color. Only valid within a lock/unlock session. |
Implementation:
Pixel data implementation. |
Detailed description:
!group=Display/Display 2D! !header=display.h!