version 6.0
WR O RESIZE PICTURE (area; newHeight; newWidth)
| Parameter | Type | Description | |
| area | Longint | 4D Write area | |
| newHeight | Integer | New height of the picture | |
| newWidth | Integer | New width of the picture |
Note 6.5: This command was only maintained for compatibility purposes. We recommend using the WR SET PICTURE SIZE command.
Description
The command WR O RESIZE PICTURE modifies the size of a selected picture in the 4D Write area. The selection should consist only of the selected picture. If no picture is selected, then error 1034 is generated.
newHeight is the new height of the picture in points. newWidth is the new width of the picture also in points.
There are 72 dots per inch (dpi) on a typical Macintosh monitor. If your monitor has a resolution of 82 dpi or more, use a case statement to determine the number of dots per inch to use.
If newHeight or newWidth are less than 0, the size of the picture is not modified. If newHeight or newWidth are equal to 0, the picture is removed.
See Also