Applies the annotation object to a bitmap, altering the bitmap, itself.
virtual L_INT LAnnotation::Realize(pBitmap, prcBounds)
virtual L_INT LAnnotation::Realize(pLBitmap, prcBounds)
Pointer to the bitmap handle referencing the bitmap to update.
Pointer to the LBitmapBase object referencing the bitmap to update.
Pointer to the Windows RECT structure that specifies the bounding rectangle where the annotations will be drawn. You can pass NULL for the default, which matches the bitmap by specifying left = 0, top = 0, right = bitmap width, and bottom = bitmap height.
|SUCCESS||The function was successful.|
|< 1||An error occurred. Refer to Return Codes.|
Encryptor objects cannot be realized. The encryptor is the only annotation object that cannot be realized.
This function works only for 1, 4, 8, 16, and 24-bit images. When using an image that has some other number of bits per pixel, call LBitmapBase::ColorRes to change the image to a supported bits per pixel before calling LAnnotation::Realize.
This is an example for LAnnotation::Realize(pBitmap, prcBounds):
L_INT LAnnotation_RealizeExample(LAnnotation& LeadAnn,pBITMAPHANDLE pBitmap)
nRet = LeadAnn.Realize(pBitmap,NULL);
if(nRet != SUCCESS)
Medical Web Viewer .NET
.NET, Java, Android, and iOS/macOS Assemblies
C API/C++ Class Libraries