Sets the shape parameters for LPaintEffect::Draw3dShape.
#include "ltwrappr.h"
L_INT LPaintEffect::SetShapeParameters(pShapeDlgParm)
Pointer to a structure of type SHAPEDLGPARAMS that contains the shape parameters
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes. |
Win32, x64.
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 Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document