Available in LEADTOOLS Imaging Pro, Vector, Document, and Medical Imaging toolkits. |
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 LDialogWeb::DoModalGIFWebTuner 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 |
Ignored. |
|
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_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 |
Ignored. |
|
pHelpCallBackUserData |
Ignored. |