Aurigma Graphics Mill 5.5 for .NET
Transparentize Class
This class enables you to set alpha values of pixels with specified colors (and tolerant ones) to transparent.
Namespace:
Aurigma.GraphicsMill.Transforms
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
Syntax
Visual Basic
Public NotInheritable Class Transparentize _ Inherits BitmapTransform
C#
public sealed class Transparentize : BitmapTransform
Remarks
This transform is very useful when you need to blend two images and "upper" image does not have alpha channel, but it has a background color. For example, you draw a logo placed in the center of the image on white background. In this case you set TransparentColor to white color. You can also adjust a Tolerance parameter to make colors close to white color be semi-transparent (to get smooth colors). Besides of that Tolerance is useful when background color is not completely uniform (for example, you loaded JPEG file with low quality).
Inheritance Hierarchy
System..::.Object
L
Aurigma.GraphicsMill..::.SyncHandler
L
Aurigma.GraphicsMill..::.UnitConverterHandler
L
Aurigma.GraphicsMill.Transforms..::.BitmapTransform
L
Aurigma.GraphicsMill.Transforms..::.Transparentize
Thread Safety
Static members of this type are safe for multi-threaded operations. Instance members of this type are safe for multi-threaded operations.
Supported Pixel Formats
| Member Name | Description |
|---|---|
| Format1bppIndexed | 1 bit per pixel. Indexed. |
| Format4bppIndexed | 4 bits per pixel. Indexed. |
| Format8bppIndexed | 8 bits per pixel. Indexed. |
| Format8bppGrayScale | 8 bits per pixel. Grayscale. 8 bits are used for luminosity level. |
| Format16bppGrayScale | 16 bits per pixel. Grayscale. All 16 bits are used for luminosity level (extended pixel format). |
| Format16bppAGrayScale | 16 bits per pixel. Grayscale with alpha channel. 8 bits are used for alpha channel and other 8 bits are used for luminosity level. |
| Format32bppAGrayScale | 32 bits per pixel. Grayscale with alpha channel. 16 bits are used for alpha channel and other 16 bits are used for luminosity level (extended pixel format). |
| Format24bppRgb | 24 bits per pixel. RGB. 8 bits each are used for the red, green, and blue components. |
| Format32bppRgb | 32 bits per pixel. RGB. 8 bits each are used for the red, green, and blue components. The rest 8 bits are unused. |
| Format32bppArgb | 32 bits per pixel. RGB with alpha channel. 8 bits each are used for the alpha, red, green, and blue components. |
| Format48bppRgb | 48 bits per pixel. RGB. 16 bits each are used for the red, green, and blue components (extended pixel format). |
| Format64bppArgb | 64 bits per pixel. RGB with alpha channel. 16 bits each are used for the alpha, red, green, and blue components (extended pixel format). |
| Format32bppCmyk | 32 bits per pixel. CMYK. 8 bits each are used for the cyan, magenta, yellow, and black components. |
| Format64bppCmyk | 64 bits per pixel. CMYK. 16 bits each are used for the cyan, magenta, yellow, and black components (extended pixel format). |
| Format80bppAcmyk | 80 bits per pixel. CMYK with alpha channel. 16 bits each are used for the alpha, cyan, magenta, yellow, and black components (extended pixel format). |