Sets the bitmap object that will be used by the painting and drawing functions. The painting functions will paint the class object's associated bitmap into the device context specified by the LDraw::SetDC.
Pointer to a LEAD bitmap object of type LBitmapBase, this is the bitmap object to be used by the painting functions.
Before you can use any of the bitmap painting functions, a bitmap and a device context must be associated with the class object. Until you have associated a bitmap with the LDraw object, the object is considered invalid.
L_INT LDraw__SetBitmapExample(LBitmapBase& LeadBitmap,HWND hWnd)
LDraw LeadDraw ;
if (LeadDraw.IsValid() == FALSE)
if (LeadDraw.GetDC() == NULL)
HDC hDC = GetDC(hWnd);
Medical Web Viewer .NET
.NET, Java, Android, and iOS/macOS Assemblies
C API/C++ Class Libraries