See Also

ImgX_Draw Object  | Draw.ImageWithAlpha  | Draw.Image

TopImage
The image to overlay onto the current bottom image. 
X
Horizontal position of top image
Y
Vertical position of top image
MergeOption
Specify how the top pixels are merged with the bottom pixels. 
Parameter
Optional parameter to use depending on MergeOption chosen. If FastBlend or AccurateBlend, this value is the opacity (1 = fully opaque, 0 = fully transparent)
UndoText
If undo levels have been enabled with the ImgX.UndoLevels property, this parameter may be used to describe what was done. If omitted, a default text will be used. Alternatively, "No Undo" may be used to skip the creation of an undo level.
See Also Atalasoft - ImgX 6.4 ActiveX dll Submit feedback on this topic

ImageWithMergeOptions Method

Description

Similar to Draw.Image, but allows pixels from the top image to be merged with pixels in the bottom image with a number of different options specified with the MergeOption parameter.

Syntax

Public Sub ImageWithMergeOptions( _
   ByRef TopImage As ImgX_Image, _
   Optional ByVal X As Long = 0, _
   Optional ByVal Y As Long = 0, _
   Optional ByVal MergeOption As ImgX_OverlayMergeType = ixotFastBlend, _
   Optional ByVal Parameter As Double = 0, _
   Optional ByVal UndoText As String = "" _
) 

Parameters

TopImage
The image to overlay onto the current bottom image. 
X
Horizontal position of top image
Y
Vertical position of top image
MergeOption
ValueDescription
ixotFastBlendFast Blend. Uses factor parameter as opacity.
ixotAccurateBlendSlower, more accurate blend. Uses factor parameter as opacity.
ixotLogicalANDPixels are combined with logical AND
ixotLogicalORPixels are combined with logical OR.
ixotLogicalXORPixels are combined with logical XOR
ixotMaxOutput pixels is max of top and bottom.
ixotMinOutput pixel is min of top and bottom.
ixotSumOutput pixel is sum of top and bottom.
ixotDifferenceOutput pixel is difference of top and bottom
ixotGreaterThenFactorIf top pixel value > factor, output top pixel value, otherwise output factor
ixotLessThenFactorIf top pixel value < factor, output top pixel value, otherwise output factor
ixotAbsoluteValueOfDifferenceAbsolute value of the differnce of top and bottom pixel
ixotMultiplymultiply bottom pixel value by top pixel value and divide by 255 (top * bottom) / 255
ixotMultiplyWithFactormultiply bottom pixel value by top pixel value and by a factor and divide by 255 (top * bottom * factor) / 255
ixotScreen255-(((255-top)*(255-bottom)) / 255)
Specify how the top pixels are merged with the bottom pixels. 
Parameter
Optional parameter to use depending on MergeOption chosen. If FastBlend or AccurateBlend, this value is the opacity (1 = fully opaque, 0 = fully transparent)
UndoText
If undo levels have been enabled with the ImgX.UndoLevels property, this parameter may be used to describe what was done. If omitted, a default text will be used. Alternatively, "No Undo" may be used to skip the creation of an undo level.

See Also

ImgX_Draw Object  | Draw.ImageWithAlpha  | Draw.Image

 

 


© 2000-2005 Atalasoft, Inc.