DrawImageTransparencyColorEx Method

See Also     Examples     Applies To

Draws an image into the native GdPicture image applying full transparency of a specific color. This function takes a percentage threshold parameter regarding the color to set as transparent.
Ie: A threshold value of 90 means that all the color which are near than 90% of the color parameter will be considered.

Syntax

object.DrawImageTransparencyColorEx (nimageID, nTransparentColor, nThreshold, nDstLeft, nDstTop, nDstWidth, nDstHeight, nInterpolationMode)

The DrawImageTransparencyColorEx syntax has these parts:

Part Description
object Required. An object expression that evaluates to an object in the Applies To list.
nimageID Required. Long. GdPicture Image handle. Image handle of the image to draw into the native GdPicture image.
nTransparentColor Required. Long. The color to set as transparent.
nThreshold Required. Single. percentage threshold between 0 and 100.
nDstLeft Required. Long. Left pixel destination of the native GdPicture image.
nDstTop Required. Long. Top pixel destination of the native GdPicture image.
nDstWidth Required. Long. Width in pixel of the drawn image.
nDstHeight Required. Long. Height in pixel of the drawn image.
nInterpolationMode Optional. Long InterpolationMode. Default value is 3 (InterpolationModeBilinear).

Returns

Long. GdPictureStatus

Category

Draw (Images)





© Copyright 2008 GdPicture All rights reserved.
Documentation MAP.