L_VOID LDraw::SetBitmap(pBitmap)
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.
None.
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.
Win32, x64.
L_INT LDraw__SetBitmapExample(LBitmapBase& LeadBitmap,HWND hWnd)
{
LDraw LeadDraw ;
if (LeadDraw.IsValid() == FALSE)
LeadDraw.SetBitmap(&LeadBitmap) ;
if (LeadDraw.GetDC() == NULL)
{
HDC hDC = GetDC(hWnd);
LeadDraw.SetDC(hDC) ;
//...
LeadDraw.SetDC(0) ;
ReleaseDC(hWnd,hDC) ;
}
else
return FAILURE;
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