void CopyChannel(DrawableImage* source, const Rect<SInt32>& sourceRect, const Point<SInt32>& destPoint, ChannelBits sourceChannel, ChannelBits destChannel);
CopyChannel transfers data from one channel of another drawable object into a channel of the current drawable image. All of the data in the other channels in the destination drawable image are preserved.
Parameters |
Description |
DrawableImage* source |
The input bitmapdrawable image to use. |
const Rect<SInt32>& sourceRect |
The source rectangle. |
const Point<SInt32>& destPoint |
The destination point that represents the upper-left corner of the rectangular area where the new channel data is placed. To copy only channel data from one area to a different area in the destination image, specify a point other than (0,0). |
ChannelBits sourceChannel |
The source channel. |
ChannelBits destChannel |
The destination channel. |