AnnSetTransparentColor method (ILEADRasterAnnotation)
short AnnSetTransparentColor(long hObject, OLE_COLOR crTransparent, VARIANT_BOOL bSelected); | |
Overview |
Refer to Implementing Annotations. |
Remarks
(Document/Medical only) Sets the transparent color. A transparent color is not painted when the image is painted. For information on how LEADTOOLS uses colors, refer to Using Color Values in LEADTOOLS.
The AnnSetTransparentColor method is valid only for the following object types when they are using a bitmap:
Point
Stamp (including the Rubber Stamp tools)
In addition, the Automation object stores transparent color settings along with the other object default settings
This transparent color is used only if the object is set to transparent using the AnnSetTransparent method.
By default, the transparent color is white (0x00FFFFFF).
If hObject is a container object, then bSelected indicates which objects to process. If hObject is an automation object, all objects created by this automation object will have this transparent color.
In design mode, the transparent color can be picked by selecting the Transparent color from the properties menu. If the object’s bitmap has a palette, a dialog box will come up allowing you to select a color from the palette colors. If the object’s bitmap does not have a palette, the standard Windows color pick dialog box is used to select a transparent color.
Call the AnnSetTransparent method to set such objects to use a transparent color. Call the AnnSetTransparentColor method to set the color to be used as the transparent color. Call the AnnGetTransparent method to get a value that indicates whether the bitmap being used by the annotation object is using a transparent color. Call the AnnGetTransparentColor method to determine which color is being used as the transparent color.
See Also