ShowJPEGWebTunerDlg method (LEADDlgWeb Control)

C++ Builder example

Delphi 4.0 example

 

Builder Syntax

int ShowJPEGWebTunerDlg (TWinControl* AOwnerCtrl);

Delphi Syntax

Function ShowJPEGWebTunerDlg (AOwnerCtrl: TWinControl ): L_INT;

Overview

Refer to Using Imaging Common Dialogs.

Remarks

Displays the JPEG Web Tuner dialog box, and gets the tuning options used by the Save and SaveWithStamp methods.

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

Value

Meaning

 

DLG_JPEGWEBTUNER_SHOW_CONTEXTHELP

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

 

DLG_JPEGWEBTUNER_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_JPEGWEBTUNER_SHOW_TOOL_ZOOMLEVEL

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

 

DLG_JPEGWEBTUNER_SHOW_INFORMATION

[$00000008] Show the Information group of controls.

 

DLG_JPEGWEBTUNER_SHOW_SAVETHUMBNAIL

[$00000010] Show the Save Thumbnail control.

 

DLG_JPEGWEBTUNER_SHOW_OPTIONS

[$00000100] Show the Options group of controls.

 

DLG_JPEGWEBTUNER_SHOW_EXPORT

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

 

These values may be combined by ORing them.

If you include DLG_JPEGWEBTUNER_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:

Quality property

Format property

Progressive property

WithStamp property

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

The JPEG Web Tuner dialog can be seen below:

image\JPEGWebTuner.gif

See Also

Elements:

Quality property, Format property, Progressive property, WithStamp property, ShowHelpButton property, ZoomToFit Property, DlgFlags property, EnableMethodErrors property.

Topics:

Imaging Common Dialogs: Properties, Methods, and Events