ShowPNGWebTunerDlg method (ILEADRasterDlgWeb)

Visual Basic example

Visual C++ example

 

Syntax

short ShowPNGWebTunerDlg (long hWnd);

Overview

Refer to Using Imaging Common Dialogs

Remarks

Displays the PNG Web Tuner dialog box, and gets the tuning options used by ColorRes, Fill, and Save methods.

The layout and action of the dialog depends on the flags set in the UIFlags property. Possible options are:

Value

Meaning

PNGWEBTUNER_SHOW_CONTEXTHELP

[0X00000001] dialog should contain a context sensitive help icon.

PNGWEBTUNER_SHOW_PREVIEW

[0X00000002] show a preview of the image in the dialog. The Common Dialog Bitmap property must be assigned a valid bitmap before calling this method.

PNGWEBTUNER_SHOW_TOOL_ZOOMLEVEL

[0X00000004] show the "Zoom to fit" and "Zoom Normal" toolbar buttons. The PNGWEBTUNER_SHOW_PREVIEW flag must be set in order to show these buttons.

PNGWEBTUNER_SHOW_TOOL_COLORPICKER

[0X00000008] show the color button in the toolbar.

PNGWEBTUNER_SHOW_INFORMATION

[0X00000010] show the Information group of controls.

PNGWEBTUNER_SHOW_ADDWINDOWCOLOR

[0X00000020] show the Add Window Colors check box.

PNGWEBTUNER_SHOW_TRANSPARENCY

[0X00000040] show the Transparency group of controls.

PNGWEBTUNER_SHOW_EXPORT

[0X00000080] show the Export button instead of the OK button.

PNGWEBTUNER_SHOW_APPLY

[0x00000100] Show the Apply button in the dialog. The dialog will not apply any effect unless the user presses the Apply button.

These values may be combined by ORing them.

If you include PNGWEBTUNER_SHOW_PREVIEW in the UIFlags property, the Common Dialog Bitmap property must be assigned a valid bitmap before calling this method.

The following properties are associated with this method:

TransparentColor property

PaletteType property

EnableWindowsColors Property

DitherType property

BitsPerPixel property

NumOfColors property

TransparencyTolerance property

EnableTransparent Property

To include a Help button in the dialog, set the ShowHelpButton property to VARIANT_TRUE.

The PNG Web Tuner dialog can be seen below:

image\PNGWebTuner.gif

See Also

Elements

ShowHelpButton property, EnableZoomToFit Property, UIFlags Property, EnableMethodErrors property