LPaintEffect::SetShapeParameters

Summary

Sets the shape parameters for LPaintEffect::Draw3dShape.

Syntax

#include "ltwrappr.h"

L_INT LPaintEffect::SetShapeParameters(pShapeDlgParm)

Parameters

LPSHAPEDLGPARAMS pShapeDlgParm

Pointer to a structure of type SHAPEDLGPARAMS that contains the shape parameters

Returns

Value Meaning
SUCCESS The function was successful.
< 1 An error occurred. Refer to Return Codes.

Required DLLs and Libraries

Platforms

Win32, x64.

See Also

Functions

Topics

Example

L_INT LPaintEffect__SetShapeParametersExample(LBitmapBase& LeadBitmap,HDC hDC) 
 
{ 
   L_INT nRet; 
   LPaintEffect LeadPaintEffect; 
   SHAPEDLGPARAMS ShapeDlgParm; 
   RECT Rect; 
 
   LeadPaintEffect.SetBitmap(&LeadBitmap) ; 
   LeadPaintEffect.SetDC(hDC) ; 
 
   LeadPaintEffect.GetShapeParameters(&ShapeDlgParm) ; 
 
   ShapeDlgParm.crBack = RGB(0,0,255) ; 
 
   nRet = LeadPaintEffect.SetShapeParameters(&ShapeDlgParm) ; 
   if(nRet != SUCCESS) 
      return nRet; 
 
   Rect.left = 0 ; 
   Rect.top = 0 ; 
   Rect.right = LeadBitmap.GetWidth() ; 
   Rect.bottom = LeadBitmap.GetHeight() ; 
 
   nRet = LeadPaintEffect.Draw3dShape(&Rect,EFX_SHAPE_RECTANGLE); 
   if(nRet != SUCCESS) 
      return nRet; 
 
   LeadPaintEffect.SetDC(0) ; 
 
   return SUCCESS; 
} 
Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Raster Imaging C++ Class Library Help

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.