See Also Examples Applies To
Replaces one color by another into the native GdPicture image or into an area of the native GdPicture image defined by SetROI() function.
This function takes a percentage threshold parameter regarding the color to replace.
Ie: A threshold value of 90 means that all the color which are near than 90% of the color to replace will be considered.
Syntax
object.SwapColorEx (nARGBColorSrc, nARGBColorDst, nThreshold)
The SwapColorEx syntax has these parts:
| Part | Description |
| object | Required. An object expression that evaluates to an object in the Applies To list. |
| nARGBColorSrc | Required. Long. Color to replace (as ARGB long value). |
| nARGBColorDst | Required. Long. Color of replacement (as ARGB long value). |
| nThreshold | Required. Single. percentage threshold between 0 and 100. |
Returns
Long. GdPictureStatus
Category
Color Filters & Adjustments