Meet us at PRINT 19. Chicago, IL. Oct. 3 - 5.
This documentation is for the old version. Go to the latest Graphics Mill docs

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

Visual Basic
Public Sub Transparentize ( _
	transparentColor As Color, _
	tolerance As Single _
)
C#
public void Transparentize(
	Color transparentColor,
	float tolerance
)

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

See Also

Reference