Merges pixels and alpha channel of image with the background.

Supports only 24 bit RGB pixel format.

Namespace: HiComponents.IEvolution
Assembly: IEvolution2 (in IEvolution2.dll) Version: 10.1.0.0

Syntax

         
 C#  Visual Basic  Visual C++ 
public void MergeWithAlpha(
	IEImage image,
	int dstX,
	int dstY,
	int dstWidth,
	int dstHeight,
	int transparency,
	IEResampleFilter resampleFilter,
	RenderOperation operation
)
Public Sub MergeWithAlpha ( _
	image As IEImage, _
	dstX As Integer, _
	dstY As Integer, _
	dstWidth As Integer, _
	dstHeight As Integer, _
	transparency As Integer, _
	resampleFilter As IEResampleFilter, _
	operation As RenderOperation _
)
public:
void MergeWithAlpha(
	IEImage^ image, 
	int dstX, 
	int dstY, 
	int dstWidth, 
	int dstHeight, 
	int transparency, 
	IEResampleFilter resampleFilter, 
	RenderOperation operation
)

Parameters

image
IEImage
Image with alpha channel to merge with the background.
dstX
Int32
Horizontal destination position.
dstY
Int32
Vertical destination position.
dstWidth
Int32
Destination width (Bitmap will be resampled to this value). -1 = the same width of source bitmap.
dstHeight
Int32
Destination height (Bitmap will be resampled to this value). -1 = the same height of source bitmap.
transparency
Int32
Transparency of source bitmap. 0 = fully transparent, 255 = fully opaque.
resampleFilter
IEResampleFilter
Interpolation filter used when source bitmap needs to be resampled.
operation
RenderOperation
Blender operation to perform.

Examples

CopyC#
// merges uplayer.png over background.png
ieViewer1.Image.LoadImage("background.png");
ieViewer2.Image.LoadImage("uplayer.png");
ieViewer1.Image.MergeWithAlpha(ieViewer2.Image);
ieViewer1.Image.SaveImage("output.png");

See Also