L_VOID LBitmapWindow::SetROP3(uROP3)
Sets the Windows ROP3 code to use when painting.
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.
Win32, x64.
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 ;
}
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.