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).

Namespace: HiComponents.IEvolution
Assembly: IEvolution2 (in IEvolution2.dll) Version: 10.1.0.0

Syntax

         
 C#  Visual Basic  Visual C++ 
public void SetTransparentColors(
	IERGB minColor,
	IERGB maxColor,
	int alpha
)
Public Sub SetTransparentColors ( _
	minColor As IERGB, _
	maxColor As IERGB, _
	alpha As Integer _
)
public:
void SetTransparentColors(
	IERGB minColor, 
	IERGB maxColor, 
	int alpha
)

Parameters

minColor
IERGB
low RGB values to set alpha channel
maxColor
IERGB
up RGB values to set alpha channel
alpha
Int32
the alpha value to set

See Also