#include "Ltwrappr.h"
LBitmapBase * LRasterPaintWindow::GetBitmap()
Gets the bitmap currently attached to the class object.
Pointer to the LBitmapBase class object which contains the bitmap.
Required DLLs and Libraries
LTPNT For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application |
Functions: |
LRasterPaintWindow::SetWndHandle, LRasterPaintWindow::SetBitmap, Class Members |
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;
}