LRasterPaintWindow::GetBitmap

Summary

Gets the bitmap currently attached to the class object.

Syntax

#include "Ltwrappr.h"

LBitmapBase * LRasterPaintWindow::GetBitmap()

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 22.0.2022.12.7
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS DigitalPaint C++ Class Library Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.