#include <pixel_buffer.h>
Public Member Functions | |
Construction | |
| CL_PixelBuffer () | |
| Constructs a pixel buffer. | |
| CL_PixelBuffer (const CL_PixelBufferRef &other) | |
| Constructs a PixelBuffer. | |
| CL_PixelBuffer (int width, int height, int pitch, const CL_PixelFormat &format, const void *data=0) | |
| Constructs a PixelBuffer. | |
| CL_PixelBuffer (int width, int height, int pitch, const CL_PixelFormat &format, const CL_Palette &palette, const void *data=0) | |
| Constructs a PixelBuffer. | |
| CL_PixelBuffer (const CL_PixelBuffer ©) | |
| Constructs a PixelBuffer. | |
| CL_PixelBuffer (const CL_StringRef &fullname) | |
| Constructs a PixelBuffer. | |
| CL_PixelBuffer (const CL_StringRef &filename, const CL_VirtualDirectory &dir) | |
| Constructs a PixelBuffer. | |
| CL_PixelBuffer (CL_IODevice &file, const CL_String &image_type) | |
| Constructs a PixelBuffer. | |
| virtual | ~CL_PixelBuffer () |
Attributes | |
| bool | is_null () const |
| Returns true if the PixelBuffer doesn't contain any data. | |
| CL_PixelBuffer | copy () const |
| Create a copy of the pixelbuffer that doesn't share data with the original pixel buffer. | |
| const CL_PixelFormat & | get_format () const |
| Returns the pixel format of the pixel buffer. | |
| const CL_Palette * | get_palette () const |
| Returns the palette of the pixel buffer. | |
| int | get_width () const |
| Returns the buffer width. | |
| int | get_height () const |
| Returns the buffer height. | |
| CL_Size | get_size () const |
| Returns the width and height of the buffer. | |
| unsigned int | get_pitch () const |
| Returns the pitch (bytes per scanline). | |
| void * | get_data () |
| Returns a pointer to the beginning of the pixel buffer. | |
| const void * | get_data () const |
| CL_Color | get_pixel (int x, int y) |
| Returns the pixel at coordinates x and y. | |
| CL_PixelBufferRef | get_subimage (const CL_Rect &rect) const |
| Returns a new pixel buffer, copying the area specified by rect. | |
Operations | |
| CL_PixelBuffer & | operator= (const CL_PixelBuffer ©) |
| Copy assignment operator. | |
| operator bool () const | |
| Return true if the CL_PixelBuffer is valid and usable. | |
| void | convert (CL_PixelBuffer target) const |
| Convert pixel buffer to the pixel format of the target buffer, storing the result in the target buffer. | |
| void | convert (void *buffer, const CL_PixelFormat &format, int dest_pitch, const CL_Rect &dest_rect, const CL_Rect &src_rect=CL_Rect(0, 0, 0, 0)) const |
| void | convert_line (void *buffer, const CL_PixelFormat &format, int y) const |
| Convert one line of pixel data to target buffer. | |
| CL_PixelBuffer | to_format (const CL_PixelFormat &format) const |
| Converts current buffer to a new pixel format and returns the result. | |
| void | set_colorkey (bool enabled, unsigned int colorkey) |
| Sets a new colorkey without converting the buffer. | |
| void | draw_pixel (int x, int y, const CL_Colorf &color) |
| Draw a pixel at (x, y) using the specified color. | |
| void | flip_vertical () |
| Flip the entire image vertically (turn it upside down). | |
|
|
Constructs a pixel buffer.
|
|
|
Constructs a PixelBuffer.
|
|
||||||||||||||||||||||||
|
Constructs a PixelBuffer.
|
|
||||||||||||||||||||||||||||
|
Constructs a PixelBuffer.
|
|
|
Constructs a PixelBuffer.
|
|
|
Constructs a PixelBuffer.
|
|
||||||||||||
|
Constructs a PixelBuffer.
|
|
||||||||||||
|
Constructs a 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.
|
|
|
Create a copy of the pixelbuffer that doesn't share data with the original pixel buffer.
|
|
||||||||||||||||
|
Draw a pixel at (x, y) using the specified color.
|
|
|
Flip the entire image vertically (turn it upside down).
|
|
|
|
|
|
Returns a pointer to the beginning of the pixel buffer.
|
|
|
Returns the pixel format of the pixel buffer.
|
|
|
Returns the buffer height.
|
|
|
Returns the palette of the pixel buffer.
|
|
|
Returns the pitch (bytes per scanline).
|
|
||||||||||||
|
Returns the pixel at coordinates x and y.
|
|
|
Returns the width and height of the buffer.
|
|
|
Returns a new pixel buffer, copying the area specified by rect.
|
|
|
Returns the buffer width.
|
|
|
Returns true if the PixelBuffer doesn't contain any data.
|
|
|
Return true if the CL_PixelBuffer is valid and usable.
|
|
|
Copy assignment operator.
|
|
||||||||||||
|
Sets a new colorkey without converting the buffer.
|
|
|
Converts current buffer to a new pixel format and returns the result.
|
1.4.6