Clarisse 5.0 SP8 SDK  5.0.5.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Static Public Member Functions | List of all members
ImageHelper Class Reference

Helper class to simply the usage of Image library. More...

Static Public Member Functions

static void create_bitmap (ImageHelperBitmap &bitmap, const ImageHandle &image, const unsigned int &x0, const unsigned int &y0, const unsigned int &w, const unsigned int &h, const CoreBasicArray< CoreString > &channels)
 Create a bitmap from the specified image.
 

Detailed Description

Helper class to simply the usage of Image library.

Member Function Documentation

void ImageHelper::create_bitmap ( ImageHelperBitmap bitmap,
const ImageHandle image,
const unsigned int &  x0,
const unsigned int &  y0,
const unsigned int &  w,
const unsigned int &  h,
const CoreBasicArray< CoreString > &  channels 
)
static

Create a bitmap from the specified image.

Parameters
[out]bitmapbitmap that will be create
[in]imageimage to read data from
[in]x0x origin in the image
[in]y0y origin in the image
[in]wwidth of the image
[in]hheight of the image
[in]channelsarray of channels you wish to extract (["r", "g", "b", "a"]) to fill the bitmap with a succession of RGBA.
Note
The bitmap is automatically resized to the corresponding resolution