|
Available in LEADTOOLS Imaging Pro, Vector, Document, and Medical Imaging toolkits. |
LRasterPaintWindow::GetPaintRegion
#include "Ltwrappr.h"
PAINTREGION * LRasterPaintWindow::GetPaintRegion()
Gets the paint region properties.
Returns
Pointer to a PAINTREGION structure that contains the current paint region properties.
Comments
If this function is called before LRasterPaintWindow::SetPaintRegion has been called, the default values will be returned. For more information about the default property values, refer to:
LRasterPaintWindow::Initialize must be called before calling this function.
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 |
See Also
Functions: |
Example
L_INT LRasterPaintWindow_GetPaintRegionExample(LRasterPaintWindow *pRasterPntWnd, HWND hWnd, LRasterDialog *pPaintDialog) { L_INT nRet; PAINTDLGREGIONINFO RegionDlgInfo; PAINTREGION* pPaintRegion = pRasterPntWnd->GetPaintRegion(); RegionDlgInfo.dwFlags = PAINT_DLG_REGION_SHOWALL; RegionDlgInfo.pszTitle = TEXT("Region Properties"); RegionDlgInfo.crLowerTolerance = pPaintRegion->crLowerTolerance; RegionDlgInfo.crUpperTolerance = pPaintRegion->crUpperTolerance; RegionDlgInfo.nRoundRectEllipseWidth = pPaintRegion->nRoundRectEllipseWidth; RegionDlgInfo.nRoundRectEllipseHeight = pPaintRegion->nRoundRectEllipseHeight; nRet = pPaintDialog->DoModalRegion(hWnd, &RegionDlgInfo); if(nRet == SUCCESS) { pPaintRegion->nSize = sizeof(PAINTREGION); pPaintRegion->dwMask = PRF_ALL; pPaintRegion->crLowerTolerance = RegionDlgInfo.crLowerTolerance; pPaintRegion->crUpperTolerance = RegionDlgInfo.crUpperTolerance; pPaintRegion->nRoundRectEllipseWidth = RegionDlgInfo.nRoundRectEllipseWidth; pPaintRegion->nRoundRectEllipseHeight = RegionDlgInfo.nRoundRectEllipseHeight; pRasterPntWnd->SetPaintRegion(pPaintRegion); } return nRet; }