Description:
Gets and sets the transparency flags.
If its value is IG_DSPL_TRANSPARENCY_NONE, then transparency is disabled.
The following flags enable transparency-related features:
- IG_DSPL_TRANSPARENCY_COLOR - If this flag is set, the transparency color is enabled and the color's value assigned to the Color option is transparent while drawing the image.
- IG_DSPL_TRANSPARENCY_MASK - If this flag is set, the transparency mask is enabled and the transparency mask option is used as the transparent bitmap.
- IG_DSPL_TRANSPMASK_STRETCH_TO_IMAGE - This flag is used when the transparency mask is enabled. If this flag is set, the TranspMask image is resized and oriented along with the image being displayed. If during the display operation, the image is scaled by factors DX and DY in the horizontal and vertical directions respectively, then the TranspMask image is scaled by the same factors. If this flag is not set, the transparency mask is not scaled. This flag is ignored unless the IG_DSPL_TRANSPMASK_LOCATE_TO_IMAGE flag is set.
Only one of the next three flags can be set at a time:
- IG_DSPL_TRANSPMASK_LOCATE_TO_IMAGE - This flag is applicable if the transparency mask is enabled. If this flag is set then the mask is calculated in the image-dependent coordinate system. This means that the mask is oriented as the image is, and that the MaskLocation option is calculated from the original image's ImageRect. If this flag is not set, then the IG_DSPL_TRANSPMASK_STRETCH_TO_IMAGE flag is ignored.
- IG_DSPL_TRANSPMASK_LOCATE_TO_CLIPRECT - This flag locates the transparent mask relative to the ClipRect so that the MaskLocation is calculated from the rectangle's top left point.
- IG_DSPL_TRANSPMASK_LOCATE_ABSOLUTE - This flag locates the transparent mask on the output device so that the mask's top left point has the coordinates specified in the MaskLocation option.
Property Type:
Read-write property
Return Type:
enumTranspOptions
Default Value: IG_DSPL_TRANSPARENCY_NONE
Valid Values: See enumIGDsplTranspModes Enumeration
Bits Per Pixel:
N/A
Sample:
Display