AnnGetTransparentColor method (Annotation Control)
Builder Syntax |
int AnnGetTransparentColor(HANNOBJECT hObject, TColor &clTransparent) |
Delphi Syntax |
Function AnnGetTransparentColor (hObject: HANNOBJECT; clTransparent: TColor): L_INT |
Overview |
Refer to Implementing Annotations. |
Remarks
(Document/Medical only) Retrieves the transparent color set by the AnnSetTransparentColor method. By default the transparent color is white (0x00FFFFFF). A transparent color is not painted when painting an image. For information on how LEADTOOLS uses colors, refer to Using Color Values in LEADTOOLS.
The AnnGetTransparentColor method is valid only for the following object types when they are using a bitmap:
In addition, the Automation object (ANNOBJECT_AUTOMATION) stores transparency settings along with the other object default settings
Use the AnnSetTransparent method to set such objects to use a transparent color. Use the AnnSetTransparentColor method to set the color to be used as the transparent color. Use the AnnGetTransparent method to get a value that indicates whether the bitmap being used by the annotation object is using a transparent color.
VCL uses the TColor enumerated data type that covers the values that can be returned by the Windows RGB macro. To convert from a TColor value to a COLORREF value, call the ColorToRGB method. To convert from a COLORREF value to a TColor value, cast the COLORREF value to a TColor type.
See Also