void CopyPixels(DrawableImage* source, const Rect<SInt32>& sourceRect, const Point<SInt32>& destPoint, DrawableImage* alphaSource = 0, const Point<SInt32>* alphaPoint = 0, bool mergeAlpha = false);
CopyPixels provides a fast routine to perform pixel manipulation between images with no stretching, rotation, or color effects. This method copies a rectangular area of a source image to a rectangular area of the same size at the destination point of the destination drawable image.
Parameters |
Description |
DrawableImage* source |
The input drawable image from which to copy pixels. |
const Rect<SInt32>& sourceRect |
A rectangle that defines the area of the source image to use as input. |
const Point<SInt32>& destPoint |
The destination point that represents the upper-left corner of the rectangular area where the new pixels are placed. |
DrawableImage* alphaSource = 0 |
Specifying the alphaSource causes blending. If alphaSource is specified, only the intersection of the two image bodies is copied (this is properly adjusted by the alphaPoint) |
const Point<SInt32>* alphaPoint = 0 |
The point in the alpha drawable image source that corresponds to the upper-left corner of the sourceRect parameter. |
bool mergeAlpha = false |
Whether the alpha of the images should be merged when performing the copyPixels operation. |