L_DlgEnableGdiPlus

#include "l_bitmap.h"

L_LTDLG_API L_BOOL L_DlgEnableGdiPlus(bEnable)

L_BOOL bEnable;

/* flag that indicates using GDI+ */

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

Parameter

Description

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

LTDLGKRN
LTKRN

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application

See Also

Functions:

L_DlgGetString, L_DlgSetString, L_DlgSetFont

Topics:

Dialogs: Maintenance and General Use

 

Using Imaging Common Dialog

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;
} ;