Click or drag to resize

IBitmapImagePaste Method (IBitmapImage, Int32, Int32, Int32, Int32, Int32, Int32, Single)

Copies a rectangular region from paste source image in to destination image.

Namespace:  CohesiveComputing.Imaging
Assembly:  CohesiveComputing.BatchImagePro (in CohesiveComputing.BatchImagePro.dll) Version: 1.0.0
Syntax
C#
void Paste(
	IBitmapImage pasteSourceImg,
	int sourceX,
	int sourceY,
	int sourceWidth,
	int sourceHeight,
	int destX,
	int destY,
	float opacity
)

Parameters

pasteSourceImg
Type: CohesiveComputing.ImagingIBitmapImage
The image to paste.
sourceX
Type: SystemInt32
Start X of paste image.
sourceY
Type: SystemInt32
Start Y of paste image.
sourceWidth
Type: SystemInt32
Width of region in paste image.
sourceHeight
Type: SystemInt32
Height of region in paste image.
destX
Type: SystemInt32
The start X position to paste.
destY
Type: SystemInt32
The start Y position to paste.
opacity
Type: SystemSingle
The opacity value. Anything less than 1.0 will achieve a 'blend' effect.
Exceptions
ExceptionCondition
ArgumentNullExceptionpasteSourceImg
NotSupportedExceptionOperation not supported for implementation of argument pasteSourceImg.
ArgumentOutOfRangeException opacity or sourceX or sourceY or destX or destY
See Also