#include "l_bitmap.h"
L_LTANN_APIL_INTL_AnnGetTransparentColor(hObject, pcrTransparent)
Retrieves the transparent color set byL_AnnSetTransparentColor.
Handle to the annotation object.
Address of a COLORREF variable to be updated with the transparent color. The standard Windows values for COLORREF represent either red, green, and blue color values, or an index into the bitmap's palette. A COLORREF value with the format 0x00BBGGRR represents the blue, green, and red color values for the specified pixel, where 0xBB is the blue value, 0xGG is the green value and 0xRR is the red value. If 0x01000000 is set in the COLORREF value (0x010000ZZ), the lower 8 bits (0xZZ) represent an index into the bitmap's palette which holds the color value. These COLORREF values can be used with any Windows function and macro that takes a COLORREF parameter.
InDocument and Medicaltoolkits, the COLORREF value may represent a 16 bit grayscale value if pBitmap is a 12 or 16-bit grayscale bitmap. So that the value is not confused with an RGB value, the COLORREF_GRAY16 mask (0x04000000) is set. In this case (0x0400YYYY), the lower 16 bits (0xYYYY) of the COLORREF value represent the 16-bit grayscale value. (0x0400FFFF is 16-bit white and 0x04000000is 16-bit black.) This is not a standard Windows value. Therefore, LEADTOOLS functions will recognize a COLORREF having this format, but Windows functions will not. For information on how to use a 16-bit grayscale COLORREF in a non-LEADTOOLS function, refer toL_GetPixelColor.
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer toReturn Codes. |
By default the transparent color is white (0x00FFFFFF). A transparent color is not painted when the image is painted. For information on how LEADTOOLS uses colors, refer toUsing Color Values in LEADTOOLS.
The L_AnnGetTransparentColor function is valid only for the following object types when they are using a bitmap:
In addition, the Automation object stores transparency settings along with the other object default settings
Call theL_AnnSetTransparentfunction to set such objects to use a transparent color. Call theL_AnnSetTransparentColorfunction to set the color to be used as the transparent color. Call theL_AnnGetTransparentfunction to get a value that indicates whether the bitmap being used by the annotation object is using a transparent color.
Required DLLs and Libraries
Win32, x64.
For an example, refer toL_AnnSetTransparentColor.
Help Collections
Raster.NET|C API|C++ Class Library|HTML5 JavaScript
Document.NET|C API|C++ Class Library|HTML5 JavaScript
Medical.NET|C API|C++ Class Library|HTML5 JavaScript
Medical Web Viewer.NET
188宝金博怎么下载
Media Foundation.NET|C API|Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.