Table of Contents

Method Paste

Namespace
Alternet.Drawing
Assembly
Alternet.UI.Common.dll

Paste(GenericImage, int, int, GenericImageAlphaBlendMode)

Copy the data of the given image to the specified position in this image.

public virtual void Paste(GenericImage image, int x, int y, GenericImageAlphaBlendMode alphaBlend = GenericImageAlphaBlendMode.Overwrite)

Parameters

image GenericImage

The image containing the data to copy, must be valid.

x int

The horizontal position of the position to copy the data to.

y int

The vertical position of the position to copy the data to.

alphaBlend GenericImageAlphaBlendMode

This 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.