#include "ltwrappr.h"
static L_BOOL LDialogBase::EnableGdiPlus (bEnable)
Enables or disables using GDI+ for the LEADTOOLS Common Dialogs.
Flag that indicates whether to enable or disable using GDI+ when painting the preview thumbnail of an image on the right hand side for the open dialog and the before/after previews. Possible values are:
Value | Meaning |
---|---|
TRUE | Uses GDI+. |
FALSE | Uses GDI. |
The previous state.
Required DLLs and Libraries
L_INT LDialogBase_EnableGdiPlusExample(LBitmap * pBitmap, HWND hWnd)
{
L_INT nRet;
LDialogColor DlgColor;
nRet = DlgColor.Initialize(DLG_INIT_COLOR );
if(nRet != SUCCESS)
return nRet;
DlgColor.SetBitmap(pBitmap);
DlgColor.EnableGdiPlus(TRUE);
BRIGHTNESSDLGPARAMS DlgParams;
memset ( &DlgParams, 0, sizeof ( BRIGHTNESSDLGPARAMS ) ) ;
DlgParams.uStructSize = sizeof ( BRIGHTNESSDLGPARAMS ) ;
DlgColor.EnableCallBack (FALSE);
DlgColor.EnablePreview(TRUE);
DlgColor.EnableAutoProcess(TRUE);
DlgColor.EnableToolbar(TRUE);
nRet = DlgColor.SetBrightnessParams(&DlgParams) ;
if(nRet != SUCCESS)
return nRet;
nRet = DlgColor.DoModalBrightness(hWnd);
if(nRet < 1)
return nRet;
// Gets the updated values for the structure
nRet = DlgColor.GetBrightnessParams(&DlgParams, sizeof(DlgParams)) ;
if(nRet != SUCCESS)
return nRet;
nRet = DlgColor.Free();
if(nRet != SUCCESS)
return nRet;
return nRet;
}
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.