Aurigma Graphics Mill 5.5 for .NET
ChannelsProvider..::.Transparentize Method
Sets alpha values of pixels with specified colors (and tolerant ones) to transparent.
Namespace:
Aurigma.GraphicsMill
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
Syntax
Parameters
- transparentColor
-
Type: Aurigma.GraphicsMill..::.Color
Color value specifying a color to transparentize.
- tolerance
-
Type: System..::.Single
Value in range [0, 1] specifying admissible tolerance (distance between colors in color space) when comparing current color and transparent color. Minimum value (0) means exact match of the colors, maximum value (1) means that any color matches.
Examples
Visual Basic
bitmap.Channels.Transparentize(Aurigma.GraphicsMill.RgbColor.LightBlue, 0.3F)
C#
bitmap.Channels.Transparentize(Aurigma.GraphicsMill.RgbColor.LightBlue, 0.3f);