mcGraphObjMaskBitmapOptions Enumeration
|
|
Legal values for the McGraphObjBitmap.MaskBitmap method'sMaskOptionFlags argument.
Namespace:
MediaCy.IQL.Display.Overlays
Assembly:
MediaCy.IQL.Display.Overlays (in MediaCy.IQL.Display.Overlays.dll) Version: 10.0.6912.0
SyntaxPublic Enumeration mcGraphObjMaskBitmapOptions
Members
| Member name | Value | Description |
---|
| mcgmboNone | 0 | No options, this is the default state. |
| mcgmboIgnoreZeroMaskValues | 1 | If set, areas of theMaskBitmapSource with zero value have no effect on the existing local
opacity (alpha values) of the bitmap. If not set (the default case), then
areas of the MaskBitmapSource with zero value set corresponding bitmap
pixels to transparent (zero alpha). You might use this flag to create a
circular "opacity brush" that could be used to set the opacity of pixels
just in a circular region, leaving those outside of the circle unchanged. |
| mcgmboIgnoreNonZeroMaskValues | 2 | If set, areas of theMaskBitmapSource with non-zero value have no effect on the existing local
opacity (alpha values) of the bitmap. If not set (the default case), then
areas of the MaskBitmapSource with non-zero value set corresponding bitmap
pixels' alpha to the mask value (as scaled by the mcgmboMaskMultiplierByte
and mcgmboMaskDivisorByte). You might use this flag to create an oval
"picture frame" that could be used to make transparent only those pixels
outside of an elliptical region, leaving the translucence of those inside of
the ellipse unchanged. |
| mcgmboMissingIsOpaque | 0 | For a call to the MaskBitmapmethod with an Empty or Missing MaskSourceBitmap argument, then the entire
bitmap is set to fully opaque (alpha = 255). This is the default behavior,
so the value of this flag is zero. |
| mcgmboMissingIsMultiplierByte | 16 | If this flag is set for acall to the MaskBitmap method with an Empty or Missing MaskSourceBitmap
argument, then the then the entire bitmap is set to the value of the
mcgmboMaskMultiplierByte (which if zero is fully transparent, alpha = 0).
You might wish to do this to prepare the bitmap for subsequent masking of a
sub-rectangle. This MaskOptionFlags bit is illegal for a MaskBitmap method
where the MaskBitmapSource is not missing or Empty. |
| mcgmboMaskMultiplierByte | 65280 | If non-zero, this byte value isused as a multiplier for values in the MaskBitmapSource before being
divided by the mcgmboMaskDivisorByte and then used to set bitmap pixel alpha
values. Note that masks set from McBitMask sources will have values of only
either zero or 255, so scaling the value is essential to having any
intermediate effect on bitmap Alpha values.
If the mcgmboMissingIsMultiplierByte flag is set, and the MaskSourceBitmap
argument is missing or Empty, then this byte value is used to set the alpha
value of the entire bitmap. |
| mcgmboMaskMultiplierByteShift | 256 | Amount to dividemcgmboMaskMultiplierByte by to get the byte's correct value. |
| mcgmboMaskDivisorByte | 16711680 | If non-zero, this byte value isused as a divisor for values in the MaskBitmapSource after being
multiplied by the mcgmboMaskMultiplierByte and then used to set bitmap pixel alpha
values. Note that masks set from McBitMask sources will have values of only
either zero or 255, so scaling the value is essential to
having any intermediate effect on bitmap Alpha values. |
| mcgmboMaskDivisorByteShift | 65536 | Amount to dividemcgmboMaskDivisorByte to get the byte's correct value. |
See Also