SetTransparentColors sets as transparent all pixels inside the MinColor and MaxColor range.
The trasparency value comes from Alpha parameter (0=fully transparent, 255=fully visible).
If you are sure of the RGB value of the transparent colors, just set MinColor and MaxColor to the same value.
If you want all colors from gray (128,128,128) to white (255,255,255) to be transparent, write SetTransparentColors(IERGB(128,128,128),IERGB(255,255,255),0).
Assembly: IEvolution2 (in IEvolution2.dll) Version: 10.1.0.0
Syntax
C# | Visual Basic | Visual C++ |