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

LTPNT
LTDIS
LTFIL
LTAUT
LTCON
LTTLB

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application

See Also

Functions:

LRasterPaintWindow::SetWndHandle, LRasterPaintWindow::SetBitmap, Class Members

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 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
LEADTOOLS DigitalPaint C++ Class Library Help