ShowResizeDlg method (ILEADRasterDlgImg)

Visual Basic example

Visual C++ example

 

Syntax

short ShowResizeDlg (long hWnd);

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 UIFlags property. Possible options are:

Value

Meaning

RESIZE_AUTOPROCESS

[0x00000001] process the image on OK. The Common Dialog Bitmap property must be assigned a valid bitmap before calling this method.

RESIZE_SHOW_CONTEXTHELP

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

RESIZE_SHOW_PERCENTAGE

[0x00000004] dialog should contain the percentage value combo.

RESIZE_SHOW_MAINTAINASPECT

[0x00000008] dialog should contain the maintain aspect check box.

RESIZE_SHOW_RESOLUTION

[0x00000010] dialog should contain the resolution group information.

RESIZE_SHOW_IDENTICALVALUE

[0x00000020] dialog should contain the identical value check box. This option requires RESIZE_SHOW_RESOLUTION to be set.

RESIZE_MAINTAINASPECT

[0x00000040] dialog will maintain the aspect ratio for the specified nNewWidth and nNewHeight values.

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

The properties associated with this dialog are:

MaxNewWidth property

MaxNewHeight property

MaxNewResolutionX property

MaxNewResolutionU property

NewWidth property

NewHeight property

NewResolutionX property

NewResolutionY property

CurrentWidth property

CurrentHeight property

CurrentResolutionX property

CurrentResolutionY property

BitsPerPixel property

ResizeFlags property

The following properties must be set before calling ShowResizeDlg method

CurrentWidth property

CurrentHeight property

CurrentResolutionX property

CurrentResolutionY property

BitsPerPixel property

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

The Resize dialog can be seen below:

image\Resize.gif

See Also

Elements

Size method, Angle property, EnableHorizontal property, BackColor property, ShowHelpButton property, UIFlags property, EnableZoomToFit property, EnableMethodsErrors property