LRasterPaintWindow::GetBitmap

#include "Ltwrappr.h"

LBitmapBase * LRasterPaintWindow::GetBitmap()

Gets the bitmap currently attached to the class object.

Returns

Pointer to the LBitmapBase class object which contains the bitmap.

Required DLLs and Libraries

See Also

Functions

Example

L_INT LRasterPaintWindow_GetBitmapExample(LRasterPaintWindow* pRasterPntWnd, HWND hWnd) 
 
{ 
   L_INT       nRet; 
 
   LBitmapBase  *pLBtmpbase = new LBitmapBase(); 
   pLBtmpbase= pRasterPntWnd->GetBitmap(); 
 
   SAVEDLGPARAMS DlgParams ; 
   memset ( &DlgParams, 0, sizeof ( SAVEDLGPARAMS ) ) ;  
   DlgParams.uStructSize = sizeof ( SAVEDLGPARAMS ) ;  
 
   nRet = LDialogFile::Initialize (0);  
   if(nRet != SUCCESS) 
      return nRet; 
 
   nRet = pLBtmpbase->DialogFile()->SetSaveParams (&DlgParams) ;  
   if(nRet != SUCCESS) 
      return nRet; 
 
   nRet = pLBtmpbase->DialogFile()->DoModalSave(hWnd); 
   if(nRet < 1) 
      return nRet; 
 
   nRet = pLBtmpbase->DialogFile()->GetSaveParams (&DlgParams,sizeof ( SAVEDLGPARAMS )) ;  
 
   nRet = pLBtmpbase->Save(DlgParams.szFileName , 
                           DlgParams.nFormat , 
                           DlgParams.nBitsPerPixel , 
                           DlgParams.nQFactor,0,NULL); 
 
   if(nRet != SUCCESS) 
      return nRet; 
 
   return SUCCESS; 
} 
Help Version 21.0.2021.4.7
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS DigitalPaint C++ Class Library Help