When using the FadedMaskCommand class, the general process is as follows:
Open any bitmap.
Select any region.
Create a Fade Mask. The images below show various fade masks resulting from the use of various flags. For these images, the following values were also used:
Region type: rounded rectangle.
Length = 50;
FadeRate = 15; StepSize = 3; MaxGray = 255; Transparent = RGB(255, 0, 0);
Without using FadedMaskCommandFlags.FadeOutsideRegion
transparency
FadedMaskCommandFlags.FadeWhiteToBlack
FadedMaskCommandFlags.FillWithDumpColor
FadedMaskCommandFlags.FillWithDumpColor | FadedMaskCommandFlags.FadeWhiteToBlack
FadedMaskCommandFlags.FillWithDumpColor | FadedMaskCommandFlags.DumpColorStart
FadedMaskCommandFlags.FillWithDumpColor | FadedMaskCommandFlags.DumpColorStart | FadedMaskCommandFlags.FadeWhiteToBlack
FadedMaskCommandFlags.FillWithDumpColor | FadedMaskCommandFlags.NoTransparencyFill
FadedMaskCommandFlags.FillWithDumpColor | FadedMaskCommandFlags.NoTransparencyFill | FadedMaskCommandFlags.TransparencyAsDump
plus many other possibilities
Using FadedMaskCommandFlags.FadeOutsideRegion:
Rounded rectangle smaller than the above region, Inflate = 60
FadedMaskCommandFlags.FadeOutsideRegion
FadedMaskCommandFlags.FadeOutsideRegion | FadedMaskCommandFlags.FadeWhiteToBlack
FadedMaskCommandFlags.FadeOutsideRegion | FadedMaskCommandFlags.FillWithDumpColor
FadedMaskCommandFlags.FadeOutsideRegion | FadedMaskCommandFlags.FillWithDumpColor | FadedMaskCommandFlags.FadeWhiteToBlack
FadedMaskCommandFlags.FadeOutsideRegion | FadedMaskCommandFlags.FillWithDumpColor | FadedMaskCommandFlags.FadeWhiteToBlack|FadedMaskCommandFlags.NoTransparencyFill
and so on...
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