ShowResizeDlg method (LEADDlgImage Control)

C++ Builder example

Delphi 4.0 example

 

Builder Syntax

int ShowResizeDlg(TWinControl* AOwnerCtrl);

Delphi Syntax

Function ShowResizeDlg (AOwnerCtrl: TWinControl ): L_INT;

Overview

Refer to Using Imaging Common Dialogs.

Remarks

Displays the Resize dialog box and gets the options for the Size method.

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

Value

Meaning

DLG_RESIZE_AUTOPROCESS

[$00000001] Process the image on OK. The Common Dialog LEADImage property must be assigned a Main Control containing a valid bitmap before calling this method.

DLG_RESIZE_SHOW_CONTEXTHELP

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

DLG_RESIZE_SHOW_PERCENTAGE

[$00000004] Dialog should contain the percentage value combo

DLG_RESIZE_SHOW_MAINTAINASPECT

[$00000008] Dialog should contain the maintain aspect check box

DLG_RESIZE_SHOW_RESOLUTION

[$00000010] Dialog should contain the resolution group information.

DLG_RESIZE_SHOW_IDENTICALVALUE

[$00000020] Dialog should contain the identical value check box. This option requires DLG_RESIZE_SHOW_RESOLUTION to be set.

DLG_RESIZE_MAINTAINASPECT

[$00000040] Dialog will maintain the aspect ratio for the NewWidth property and NewHeight property.

If you include DLG_RESIZE_AUTOPROCESS in the DlgFlags property, the LEADImage property must be assigned a Main Control containing a valid bitmap before calling this method.

The properties associated with this dialog are:

MaxNewWidth property.

MaxNewHeight property.

MaxNewResolutionX property.

MaxNewResolutionY property.

NewWidth property.

NewHeight property.

NewResolutionX property.

NewResolutionY property.

OriginalWidth property.

OriginalHeight property.

OriginalResolutionX property.

OriginalResolutionY property.

OriginalBitsPerPixel property.

ResizeFlags property.

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

The Resize dialog can be seen below:

image\Resize.gif

See Also

Elements:

Size method, MaxNewWidth property, MaxNewHeight property, MaxNewResolutionX property, MaxNewResolutionY property, NewWidth property, NewHeight property, NewResolutionX property, NewResolutionY property, OriginalWidth property, OriginalHeight property, OriginalResolutionX property, OriginalResolutionY property, OriginalBitsPerPixel property, ResizeFlags property, ShowHelpButton property, DlgFlags property, ZoomToFit Property, EnableMethodErrors property.

Topics:

Imaging Common Dialogs: Properties, Methods, and Events