#include <pixel_buffer.h>
Operations | |
| CL_PixelBufferRef | get_subimage (const CL_Rect &rect) const |
| Get subimage. | |
| CL_PixelBuffer | copy () const |
| Create a copy of the pixelbuffer that doesn't share data with the original pixel buffer. | |
| 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. | |
Public Member Functions | |
Construction | |
| CL_PixelBufferRef () | |
| Constructs a pixel buffer. | |
| CL_PixelBufferRef (const CL_PixelBuffer &buffer) | |
| Constructs a PixelBufferRef. | |
| CL_PixelBufferRef (int width, int height, int pitch, const CL_PixelFormat &format, const void *data) | |
| Constructs a PixelBufferRef. | |
| CL_PixelBufferRef (int width, int height, int pitch, const CL_PixelFormat &format, const CL_Palette *palette, const void *data) | |
| Constructs a PixelBufferRef. | |
Attributes | |
| 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 |
|
|
Constructs a pixel buffer.
|
|
|
Constructs a PixelBufferRef.
|
|
||||||||||||||||||||||||
|
Constructs a PixelBufferRef.
|
|
||||||||||||||||||||||||||||
|
Constructs a PixelBufferRef.
|
|
||||||||||||||||||||||||
|
|
|
|
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.
|
|
|
|
|
|
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 width and height of the buffer.
|
|
|
Get subimage.
|
|
|
Returns the buffer width.
|
|
|
Converts current buffer to a new pixel format and returns the result.
|
1.4.6