ShowPNGWebTunerDlg method (LEADDlgWeb Control)

C++ Builder example

Delphi 4.0 example

 

Builder Syntax

int ShowPNGWebTunerDlg (TWinControl* AOwnerCtrl);

Delphi Syntax

Function ShowPNGWebTunerDlg (AOwnerCtrl: TWinControl ): L_INT;

Overview

Refer to Using Imaging Common Dialogs.

Remarks

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

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

Value

Meaning

DLG_PNGWEBTUNER_SHOW_CONTEXTHELP

[$00000001] Dialog should contain a context sensitive help icon.

DLG_PNGWEBTUNER_SHOW_PREVIEW

[$00000002] Show a preview of the image in the dialog. The LEADImage property must be assigned a Main Control containing a valid bitmap before calling this method.

DLG_PNGWEBTUNER_SHOW_TOOL_ZOOMLEVEL

[$00000004] Show the "Zoom to fit" and "Zoom Normal" toolbar buttons. The DLG_PNGWEBTUNER_SHOW_PREVIEW flag must be set in order to show these buttons.

DLG_PNGWEBTUNER_SHOW_TOOL_COLORPICKER

[$00000008] Show the color button in the toolbar.

DLG_PNGWEBTUNER_SHOW_INFORMATION

[$00000010] Show the Information group of controls.

DLG_PNGWEBTUNER_SHOW_ADDWINDOWCOLOR

[$00000020] Show the Add Window Colors check box.

DLG_PNGWEBTUNER_SHOW_TRANSPARENCY

[$00000040] Show the Transparency group of controls.

DLG_PNGWEBTUNER_SHOW_EXPORT

[$00000080] Show the Export button instead of the OK button.

DLG_PNGWEBTUNER_SHOW_APPLY

[$00000100] 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 DLG_PNGWEBTUNER_SHOW_PREVIEW in the DlgFlags property, the LEADImage property must be assigned a Main Control containing a valid bitmap before calling this method.

The following properties are associated with this method:

TransparentColor property

PaletteType property

AddWindowsColors property

DitherType property

BitsPerPixel property

NumOfColors property

TransparencyTolerance property

Transparent property

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

The PNG Web Tuner dialog can be seen below:

image\PNGWebTuner.gif

See Also

Elements:

TransparentColor property, PaletteType property, AddWindowsColors property, DitherType property, BitsPerPixel property, NumOfColors property, TransparencyTolerance property, Transparent property, ShowHelpButton property, ZoomToFit Property, DlgFlags property, EnableMethodErrors property.

Topics:

Imaging Common Dialogs: Properties, Methods, and Events