|
X-Boost
2.3.8
|
a structure to hold image data (memory) More...
#include <Image.h>
Inherits ImageHandle.
Public Member Functions | |
| Image (int w, int h, int b) | |
| unsigned char * | delegate () |
| method to delegate the destroy of the data to a third player. | |
| void | release () |
| release manully the memory | |
| void | alloc (unsigned int w, unsigned int h, unsigned int b) |
| reserve memory for the image | |
| void | alloc_as (const ImageHandle &src) |
| allocate this image with the same geometry with a source image | |
| void | clone (const ImageHandle &src) |
| clone an image | |
Public Member Functions inherited from ImageHandle | |
| ImageHandle | crop (int x0, int y0, int x1, int y1) const |
| return a subpart of the image (without copy) | |
| ImageHandle | crop (const rect &roi) const |
| return a sub part of the image (without copy) | |
Additional Inherited Members | |
Public Attributes inherited from ImageHandle | |
| unsigned int | bpp |
| byte per pixel (1 for grayscale image, 2 for 16bit greyscale image, 3 for RGB/YUV/etc color image) | |
| unsigned int | width |
| image geometry | |
| unsigned int | height |
| long | stride |
| line stride, the delta offset, in bytes, between two different scanline | |
| unsigned char * | data |
| initial address of the first pixel. It must be cast to correct format (uint8, uint16, rgb, etc etc) | |
a structure to hold image data (memory)
1.8.7