L_DlgEnableGdiPlus

Summary

Enable/Disable using GDI+  for the LEADTOOLS Common Dialogs.

Syntax

#include "l_bitmap.h"

L_LTDLG_API L_BOOL L_DlgEnableGdiPlus(bEnable)

Parameters

L_BOOL bEnable

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 Use GDI+.
FALSE Use GDI.

Returns

The previous state.

Required DLLs and Libraries

See Also

Functions

Topics

Example

L_INT DlgEnableGdiPlusExample(HWND hWnd,pBITMAPHANDLE  pBitmap) 
{ 
   L_INT nRet; 
   BRIGHTNESSDLGPARAMS DlgParams ; 
 
   memset ( &DlgParams, 0, sizeof ( BRIGHTNESSDLGPARAMS ) ) ; 
 
   DlgParams.uStructSize   = sizeof ( BRIGHTNESSDLGPARAMS ) ; 
   DlgParams.pBitmap       = pBitmap ; 
   DlgParams.uDlgFlags     = DLG_BRIGHTNESS_SHOW_PREVIEW | 
                             DLG_BRIGHTNESS_SHOW_TOOL_ZOOMLEVEL; 
 
   nRet = L_DlgInit ( DLG_INIT_COLOR ) ; 
   L_DlgEnableGdiPlus(TRUE); 
   if(nRet != SUCCESS && nRet != ERROR_DLG_ALREADYINITIATED) 
      return nRet; 
   nRet = L_DlgBrightness ( hWnd, &DlgParams ) ; 
   if(nRet < 1) 
      return nRet; 
   nRet = L_DlgFree() ; 
   if(nRet != SUCCESS) 
      return nRet; 
   return SUCCESS; 
} ; 
Help Version 22.0.2023.2.3
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Common Dialog C API Help

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.