ImageGear Professional for Windows ActiveX
Blend Method

Description:

Blends the image from srcPage into dstPage. srcPercent specifies the percent of each image to be used in the result. The image in dstPage is destroyed and is replaced with the resulting blend. The percentage ranges from 0 to 100. A zero results in 0% dstPage and 100% srcPage. A value of 50% results in an image which is created 1/2 of each image. A value of 100% creates an image that is 100% srcPage and 0% dstPage. The images must be the same width, height, and bit depth. colorChannel lets you specify that only one color of a 24-bit image is to be blended in.

This method takes into account the ROI settings of dstPage object, that are accessible via the IGPage Object.ROI Property. By default ROI is set to the entire image.

Syntax:

      Blend (ByVal dstPage As IGPage, ByVal srcPage As IGPage, ByVal
srcPercent As Double, ByVal colorChannel As enumIGColorChannels)

Parameters:

Name Description
dstPage Reference to IGPage Object to be blended into.
srcPage Reference to IGPage Object to blend in, must be same size and bit depth.
srcPercent Percent of srcPage image to be in the blend (the percent of dstPage image will be 100.0 minus this). 0 means all of dstPage image; 50 means half and half, and 100 means all of srcPage image. The range of values is 0.0 to 100.0.
colorChannel A constant such as IG_COLOR_COMP_R, _G, _B, or _RGB, specifying which color(s) to blend.

Return Value:

N/A

Bits Per Pixel:

1, 4, 8, 8-bit gray level and 24

Sample:

Image Processing and Effects

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback