Method Paste
Paste(GenericImage, int, int, GenericImageAlphaBlendMode)
Copy the data of the given image to the specified position in this image.
void Paste(GenericImage image, int x, int y, GenericImageAlphaBlendMode alphaBlend = GenericImageAlphaBlendMode.Overwrite)
Parameters
image
GenericImageThe image containing the data to copy, must be valid.
x
intThe horizontal position of the position to copy the data to.
y
intThe vertical position of the position to copy the data to.
alphaBlend
GenericImageAlphaBlendModeThis parameter determines whether the alpha values of the original image replace(default) or are composed with the alpha channel of this image. Notice that alpha blending overrides the mask handling.
Remarks
Takes care of the mask color and out of bounds problems.