Description
Toggles the Fit images on resize option in the General Options dialog box in Page.
Syntax
Page.FitResize (iToggle) |
iToggle
Required.
0 - disable option
1 - enable option
2 - toggle
Remarks
This option allows to fit the image to the resized picture box. It means that when you resize the image by dragging middle handles, the image is not distorted, but proportionally resized and then cropped (if required). It works also in a multi selection situation.
The option is related to the 'Avoid change of images aspect ratio' option, and enabled only if that option is not selected.
There are two ways to set the 'Fit images on resize' option:
1 - Using the 'General Options' dialog
2 - Using the FitResize command.
The FitResize command will set the option only for the session. To make it permanent, select/clear the check box in the General Options dialog box.
Returns true if the temporary option value has been set, otherwise it returns false, for example if the 'Avoid change of images aspect ratio' option is enabled.
It will fit the image to the deformed picture box only if the zoom/crop is set to 100% of the image.
If the zoom/crop percentage is > 100 Fred will modify zoom/crop to keep unchanged the visible image part on the distorted side, and will proportionally resize the other side of the image.
If the zoom/crop percentage is < 100 Fred will crop the image.
This works on images with clipping path too.
Context
Page designer