#include "ltwrappr.h"
L_VOID LBitmapWindow::SetROP3(uROP3)
L_UINT32 uROP3; |
windows ROP code for display |
Sets the Windows ROP3 code to use when painting.
Parameter |
Description |
uROP3 |
The Windows ROP code that determines how the bitmap is updated. This parameter takes the same codes as the Windows BitBlt function. For ordinary painting, use SRCCOPY. |
None.
The default (for normal painting) is SRCCOPY. You can specify any of the ROP3 codes that the Windows BitBlt function uses.
Required DLLs and Libraries
LTDIS 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.
Functions: |
|
Topics: |
#define MAKE_IMAGE_PATH(pFileName) TEXT("C:\\Users\\Public\\Documents\\LEADTOOLS Images\\")pFileName
L_INT LBitmapWindow__SetROP3Example(HWND hWndParent)
{
L_INT nRet;
LBitmapWindow LeadBWnd ;
nRet = LeadBWnd.Load(MAKE_IMAGE_PATH(TEXT("image1.cmp")));
if (nRet == SUCCESS)
{
COLORREF PatternBackColor ;
COLORREF PatternForeColor ;
if (LeadBWnd.CreateWnd( hWndParent, TRUE, 0, 0, 100, 100) == NULL)
return 0;
if (LeadBWnd.GetPatternStyle() != EFX_PATTERN_DOWNWARD_DIAG)
LeadBWnd.SetPatternStyle(EFX_PATTERN_DOWNWARD_DIAG) ;
PatternBackColor = LeadBWnd.GetPatternBackColor() ;
// do process on background color
//...
LeadBWnd.SetPatternBackColor(RGB(255,0,255)) ;
//...
PatternForeColor = LeadBWnd.GetPatternForeColor();
// do process on foreground color
//...
LeadBWnd.SetPatternForeColor(RGB(0,255,0)) ;
//...
if (LeadBWnd.GetROP3() != SRCCOPY)
LeadBWnd.SetROP3(SRCCOPY) ;
if (LeadBWnd.IsPaintSizeUseDPIEnabled() == FALSE)
LeadBWnd.EnablePaintSizeUseDPI(TRUE) ;
if (LeadBWnd.IsDrawGradientEnabled() == FALSE)
LeadBWnd.EnableDrawGradient(TRUE) ;
if (LeadBWnd.IsDrawPatternEnabled() == FALSE)
LeadBWnd.EnableDrawPattern(TRUE) ;
if (LeadBWnd.IsPaintEffectEnabled() == FALSE)
LeadBWnd.EnablePaintEffect(TRUE) ;
if (LeadBWnd.IsPaintTransitionEnabled() == FALSE)
LeadBWnd.EnablePaintTransition(TRUE) ;
LeadBWnd.Repaint();
}
else
return nRet;
return SUCCESS ;
}
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET