virtual L_INT LAnnPoint::GetBitmap(pBitmap, uStructSize)
virtual L_INT LAnnPoint::GetBitmap(pBitmap, uStructSize)
Gets the bitmap handle of the annotation object.
Pointer to an LBitmapBase object to be updated with the handle to the annotation object's bitmap.
Address of the variable to be updated with the handle to the annotation object's bitmap.
Size in bytes, of the structure pointed to by pBitmap, for versioning. Use sizeof(BITMAPHANDLE).
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes. |
Before calling LAnnPoint::GetBitmap(pBitmap, uStructSize), where pBitmap is of type LBitmapBase , you must declare an LBitmapBase object. Then, pass the address of the object in the pBitmap parameter. This function will update the object with the handle to the annotation object's bitmap.
Before calling LAnnPoint::GetBitmap(pBitmap, uStructSize), where pBitmap is of type pBITMAPHANDLE, you must declare a variable of data type BITMAPHANDLE. Then, pass the address of the variable in the pBitmap parameter. This function will update the variable with the handle to the annotation object's bitmap.
Win32, x64.
This is an example of both forms of LAnnPoint::GetBitmap(pBitmap:
L_INT LAnnPoint_GetBitmapExample(HWND hWnd)
{
ANNPOINT annPoint = {50,50};
ANNRECT annRect = {50,50,150,150};
LAnnPoint *pMyAnnPoint = new(LAnnPoint);
pMyAnnPoint->SetPoints(&annPoint);
pMyAnnPoint->SetVisible(TRUE);
//Invert the primary bitmap
LBitmapBase *pBitmapBase = new(LBitmapBase);
pMyAnnPoint->GetBitmap(pBitmapBase, sizeof(BITMAPHANDLE));
//or
//BITMAPHANDLE LeadBitmap;
//pMyAnnPoint->GetBitmap(&LeadBitmap, sizeof(BITMAPHANDLE));
//Make the annotation point all white
pBitmapBase->Fill(RGB(255,255,255));
//Create container and insert annotation
LAnnContainer m_AnnContainer;
m_AnnContainer.Create(hWnd, &annRect, TRUE);
m_AnnContainer.Insert(*pMyAnnPoint);
m_AnnContainer.SetUserMode(ANNUSER_RUN);
return SUCCESS;
}
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
Multimedia
Direct Show .NET | C API | Filters
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
Imaging, Medical, and Document