LPaintEffect::SetShapeParameters

#include "ltwrappr.h"

L_INT LPaintEffect::SetShapeParameters(pShapeDlgParm)

LPSHAPEDLGPARAMS pShapeDlgParm;

pointer to a shape structure

Sets the shape parameters for LPaintEffect::Draw3dShape.

Parameter

Description

pShapeDlgParm

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

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Required DLLs and Libraries

LTDIS
LTEFX

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

Platforms

Win32, x64.

See Also

Functions:

Class Members

Topics:

Implementing Special Effects

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 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
LEADTOOLS Raster Imaging C++ Class Library Help