LRasterPaintWindow::GetPaintRegion

Summary

Gets the paint region properties.

Syntax

#include "Ltwrappr.h"

PAINTREGION * LRasterPaintWindow::GetPaintRegion()

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:

PAINTREGION

LRasterPaintWindow::Initialize must be called before calling this function.

Required DLLs and Libraries

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; 
} 
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.