You can implement transparency when doing any of the following:
Defining a region in an image makes it possible to treat the area outside the region as transparent. The PaintRegion method paints only the region that is defined for an image. The CombineFastCommand class combines only the area inside the region.
You can define a region in a number of ways, including by specifying a color. For example, if a transparent color is defined for an image, you can create a region that omits pixels of that color. For details, refer to Creating a Region.
After a region is defined, you can create a mask from it using the CreateMaskFromRegion method, which you can save in the alpha channel of a 16-bit or 32-bit file. Refer to the SetAlphaImage method for an example of how to save a region in an alpha channel.
When specifying a transparent color, use the Windows PALETTEINDEX macro to refer to a particular palette index (where the RasterColor value is >= 0x01000000). Using a palette index for transparency allows that same RGB value to be used as one of the colors in the palette, without being interpreted as transparent.
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document