DrawableImage::SetPixels

DrawableImage::SetPixels
bool SetPixels(const Rect<SInt32>& destRect, DIPixelProvider& provider);
Description

SetPixels fills in the destgination with pixels. Returns false in case of a bounds error; or the buffer does not contain enough pixels to fill the rectangle. It does fill as many pixels as possible in the second case.

Parameters
Parameters 
Description 
const Rect<SInt32>& destRect 
Specifies the rectangular region of the BitmapData object. 
DIPixelProvider& provider 
The object which will provide pixel values. 
Return Value

Set to false if the provider did not contain enough pixels to fill the rectangle.