Using the FadedMask Method - Namespace - Raster, Medical, Document Help

Using the FadedMask Method

When using the FadedMaskCommand class, the general process is as follows:

  1. Open any bitmap.

  2. Select any region.

  3. 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); First: without using FadedMaskCommandFlags.FadeOutsideRegion

FadedMaskCommandFlags.None

transparency

** noflag.gif**

FadedMaskCommandFlags.FadeWhiteToBlack

whttoblk.gif

FadedMaskCommandFlags.FillWithDumpColor

dump.gif

FadedMaskCommandFlags.FillWithDumpColor | FadedMaskCommandFlags.FadeWhiteToBlack

dump-wtb.gif

FadedMaskCommandFlags.FillWithDumpColor | FadedMaskCommandFlags.DumpColorStart

dump-fillcolor.gif

FadedMaskCommandFlags.FillWithDumpColor | FadedMaskCommandFlags.DumpColorStart | FadedMaskCommandFlags.FadeWhiteToBlack

dump-fillcolor-wtb.gif

FadedMaskCommandFlags.FillWithDumpColor | FadedMaskCommandFlags.NoTransparencyFill

dump-notrans.gif

FadedMaskCommandFlags.FillWithDumpColor | FadedMaskCommandFlags.NoTransparencyFill | FadedMaskCommandFlags.TransparencyAsDump

dump-notrans-dumpcolor.gif

plus many other possibilities

Second: using FadedMaskCommandFlags.FadeOutsideRegion:

Region type:

rounded rectangle smaller than the above region, Inflate = 60

FadedMaskCommandFlags.FadeOutsideRegion

notrans-outer.gif

FadedMaskCommandFlags.FadeOutsideRegion | FadedMaskCommandFlags.FadeWhiteToBlack

wtb-outer.gif

FadedMaskCommandFlags.FadeOutsideRegion | FadedMaskCommandFlags.FillWithDumpColor

dump-outer.gif

FadedMaskCommandFlags.FadeOutsideRegion | FadedMaskCommandFlags.FillWithDumpColor | FadedMaskCommandFlags.FadeWhiteToBlackstrong>

dump-wtb-outer.gif

FadedMaskCommandFlags.FadeOutsideRegion | FadedMaskCommandFlags.FillWithDumpColor | FadedMaskCommandFlags.FadeWhiteToBlack|FadedMaskCommandFlags.NoTransparencyFill

dump-wtb-notrans-outer.gif

and so on………..

Help Version 20.0.2018.8.13
Products | Support | Contact Us | Copyright Notices
© 1991-2018 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Imaging, Medical, and Document