Products | Support | Send comments on this topic. | Email a link to this topic. | Back to Getting Started | Help Version 18.0.10.24
LEADTOOLS Raster imaging C++ Class library help

LPaintEffect::SetShapeParameters

Show in webframe

#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;
}
Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.