Gets the bitmap currently attached to the class object.
#include "Ltwrappr.h"
LBitmapBase * LRasterPaintWindow::GetBitmap()
Pointer to the LBitmapBase class object which contains the bitmap.
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;
}