Draws a rectangular frame with the specified style into the associated device context.
#include "ltwrappr.h"
virtual L_INT LPaintEffect::DrawFrame(pRect, uFrameStyle=EFX_FRAME_OUTER_RAISED|EFX_FRAME_ADJUST_RECT)
The bounding rectangle.
Type of frame style to draw. Possible values are:
Value | Meaning |
---|---|
EFX_FRAME_INNER_INSET | [0x0000] Inner band inset |
EFX_FRAME_INNER_RAISED | [0x0001] Inner band raised |
EFX_FRAME_OUTER_INSET | [0x0000] Outer band inset |
EFX_FRAME_OUTER_RAISED | [0x0010] Outer band raised |
EFX_FRAME_ADJUST_RECT | [0x0100] Adjust dimensions of the destination rectangle |
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes. |
Win32, x64.
L_INT LPaintEffect__DrawFrameExample(LBitmapBase& LeadBitmap,HDC hDC)
{
L_INT nRet;
LPaintEffect LeadPaintEffect ;
RECT Rect ;
LeadPaintEffect.SetBitmap(&LeadBitmap) ;
LeadPaintEffect.SetDC(hDC);
if (LeadPaintEffect.GetBackgroundColor() != RGB(0,255,0))
{
nRet = LeadPaintEffect.SetBackgroundColor(RGB(0,255,0)) ;
if(nRet != SUCCESS)
return nRet;
}
if (LeadPaintEffect.GetForegroundColor() != RGB(255,255,0))
{
nRet = LeadPaintEffect.SetForegroundColor(RGB(255,255,0)) ;
if(nRet != SUCCESS)
return nRet;
}
if (LeadPaintEffect.GetMiddleBandColor() != RGB(255,0,0))
{
nRet = LeadPaintEffect.SetMiddleBandColor(RGB(255,0,0)) ;
if(nRet != SUCCESS)
return nRet;
}
if (LeadPaintEffect.GetMiddleBandWidth() != RGB(255,10,0))
{
nRet = LeadPaintEffect.SetMiddleBandWidth(RGB(255,10,0)) ;
if(nRet != SUCCESS)
return nRet;
}
if (LeadPaintEffect.GetOuterBandWidth() != 3)
{
nRet = LeadPaintEffect.SetOuterBandWidth(3) ;
if(nRet != SUCCESS)
return nRet;
}
if (LeadPaintEffect.GetOuterBandShadowColor() != RGB(255,255,255))
{
nRet = LeadPaintEffect.SetOuterBandShadowColor(RGB(255,255,255)) ;
if(nRet != SUCCESS)
return nRet;
}
if (LeadPaintEffect.GetOuterBandHilite() != RGB(255,0,255))
{
nRet = LeadPaintEffect.SetOuterBandHilite(RGB(255,0,255)) ;
if(nRet != SUCCESS)
return nRet;
}
if (LeadPaintEffect.GetInnerBandWidth() != 3)
{
nRet = LeadPaintEffect.SetInnerBandWidth(3) ;
if(nRet != SUCCESS)
return nRet;
}
if (LeadPaintEffect.GetInnerBandShadowColor() != RGB(255,255,255))
{
nRet = LeadPaintEffect.SetOuterBandShadowColor(RGB(255,255,255)) ;
if(nRet != SUCCESS)
return nRet;
}
if (LeadPaintEffect.GetInnerBandHilite() != RGB(255,0,255))
{
nRet = LeadPaintEffect.SetInnerBandHilite(RGB(255,0,255)) ;
if(nRet != SUCCESS)
return nRet;
}
Rect.left = 50 ;
Rect.top = 50 ;
Rect.right = 200 ;
Rect.bottom = 200 ;
nRet = LeadPaintEffect.DrawFrame(&Rect);
if(nRet != SUCCESS)
return nRet;
nRet = LeadPaintEffect.DrawPattern(&Rect,EFX_PATTERN_HORZ_LINE);
if(nRet != SUCCESS)
return nRet;
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
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.