GIFWEBTUNERDLGPARAMS

typedef struct _GIFWEBTUNERDLGPARAMS 
{ 
   L_UINT uStructSize ; 
   pBITMAPHANDLE pBitmap ; 
   L_BOOL bZoomToFit ; 
   COLORREF crTransparent ; 
   L_INT nPalType ; 
   L_BOOL bAddWindowsColors ; 
   L_INT nDitherType ; 
   L_INT nBitsPerPixel ; 
   L_INT nNumOfColors ; 
   L_INT nTransparencyTolerance ; 
   L_BOOL bTransparent ; 
   L_BOOL bInterlaced ; 
   L_UINT32 uDlgFlags ; 
   LTCOMMDLGHELPCB pfnHelpCallback; 
   L_VOID *pHelpCallBackUserData ; 
} GIFWEBTUNERDLGPARAMS, * LPGIFWEBTUNERDLGPARAMS ; 

The GIFWEBTUNERDLGPARAMS structure provides information used to initialize the dialog box created by the L_DlgGIFWebTuner function. After the user closes the dialog box, this structure is updated with information about the user's selections.

Member Description
uStructSize Size of this structure, in bytes. Use the sizeof operator to calculate this value.
pBitmap Pointer to the bitmap handle that references the bitmap used for preview or processing.
bZoomToFit Flag that indicates the initial zoom level for previewing the image. Possible values are:
  Value Meaning
  TRUE Set the initial zoom level to "Zoom to fit".
  FALSE Set the initial zoom level to "Normal (1:1)".

 

crTransparent The color that will be transparent in the GIF image. This color is in RGB.
nPalType Value that indicates the type of palette to use. Possible values are:
  Value Meaning
  CRF_FIXEDPALETTE Use the fixed palette
  CRF_OPTIMIZEDPALETTE Create an optimized palette

 

bAddWindowsColors Flag that indicates whether to use the identity palette. Possible values are:
  Value Meaning
  TRUE Use the identity palette.
  FALSE Do not use the identity palette.

 

nDitherType Flag that indicates the dithering type to use. Possible values are:
  Value Meaning
  CRF_NODITHERING Use nearest color matching
  CRF_FLOYDSTEINDITHERING Use Floyd-Steinberg dithering
  CRF_STUCKIDITHERING Use Stucki dithering
  CRF_BURKESDITHERING Use Burkes dithering
  CRF_SIERRADITHERING Use Sierra dithering
  CRF_STEVENSONARCEDITHERING Use Stevenson Arce dithering
  CRF_JARVISDITHERING Use Jarvis dithering
  CRF_ORDEREDDITHERING Use ordered dithering, which is faster but less accurate than other dithering methods.
  CRF_CLUSTEREDDITHERING Use clustered dithering

 

nBitsPerPixel The bits per pixel for the tuned bitmap. Valid values are: 1, 2, 3, 4, 5, 6, 7, and 8 bpp.
nNumOfColors When nBitsPerPixel is 8 or less, this value represents the maximum number of colors that the PNG image can have. Possible values range from 2 to 256. Using fewer colors results in smaller files, but also reduces the quality of the image.
nTransparencyTolerance A tolerance value that determines how close a pixel's RGB value should be to the specified transparent color to be considered transparent. A tolerance of 0 means only the transparent color specified in crTransparent will be considered transparent. Specifying larger numbers will make more of the image transparent. Valid values are from 0 to 255.
bTransparent Flag that indicates whether the GIF image will have a transparent color. Possible values are:
  Value Meaning
  TRUE The GIF image will have a transparent color.
  FALSE The GIF image will not have a transparent color.
bInterlaced Flag that indicates whether the GIF image will be interlaced. Possible values are:
  Value Meaning
  TRUE The GIF image will be interlaced.
  FALSE The GIF image will not be interlaced.

 

uDlgFlags User interface flags for this dialog which determines the layout and action of the dialog. Possible values are:
  Value Meaning
  DLG_GIFWEBTUNER_SHOW_CONTEXTHELP [0x00000001] Dialog should contain a context sensitive help icon.
  DLG_GIFWEBTUNER_SHOW_PREVIEW [0x00000002] Show a preview of the image in the dialog. The pBitmap member of this structure should contain a valid bitmap.
  DLG_GIFWEBTUNER_SHOW_TOOL_ZOOMLEVEL [0x00000004] Show the "Zoom to fit" and "Zoom Normal" toolbar buttons. The DLG_GIFWEBTUNER_SHOW_PREVIEW flag must be set in order to show these buttons.
  DLG_GIFWEBTUNER_SHOW_TOOL_COLORPICKER [0x00000008] Show the Color button.
  DLG_GIFWEBTUNER_SHOW_ADDWINDOWCOLOR [0x00000020] Show the Add Window colors check box.
  DLG_GIFWEBTUNER_SHOW_TRANSPARENCY [0x00000040] Show the Transparency group of controls.
  DLG_GIFWEBTUNER_SHOW_INFORMATION [0x00000080] Show the Information group of controls.
  DLG_GIFWEBTUNER_SHOW_OPTIONS [0x00000100] Show the Options group of controls.
  DLG_GIFWEBTUNER_SHOW_EXPORT [0x00000200] Show the Export button instead of the OK button.
pfnHelpCallback Pointer to an optional help callback function. If you do not wish to provide help to this dialog, use NULL as the value of this parameter. To provide help to this dialog, use the function pointer as the value of this parameter. The callback function must adhere to the prototype described in LTCOMMDLGHELPCB.
pHelpCallBackUserData Void pointer that you can use to pass one or more additional parameters that the callback function needs. To use this feature, assign a value to a variable or create a structure that contains as many fields as you need. Then, in this parameter, pass the address of the variable or structure, casting it to L_VOID *. The callback function, which receives the address in its own pHelpCallBackUserData parameter, can cast it to a pointer of the appropriate data type to access your variable or structure. If the additional parameters are not needed, you can pass NULL in this parameter.
Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
LEADTOOLS Common Dialog C API Help