WR GET PICTURE SIZE
version 6.5
WR GET PICTURE SIZE (area; width; height; origWidth; origHeight)
Parameter | Type | Description | |
area | Longint | 4D Write area | |
width | Number | Current width of the picture | |
height | Number | Current height of the picture | |
origWidth | Number | Width of the original picture | |
origHeight | Number | Height of the original picture |
Description
The WR GET PICTURE SIZE command allows you to retrieve information about the size of a selected picture. That picture must be located in the text flow. To get size information about a picture embedded in a page, use the WR GET PICTURE IN PAGE INFO command.
For the WR GET PICTURE SIZE command to operate properly, the picture has to be the only element of the selection.
height is the picture height. It is expressed in the current default units for the document.
width is the picture width. It is expressed in the current default units for the document.
origHeight and origWidth are respectively the original height and width before the picture was resized. If origHeight and origWidth are identical to height and width the picture has not been resized. origHeight and origWidth are expressed in the current document unit.
Note: If you want to select a picture, you can use the WR SELECT command.
Examples
See the examples for the WR INSERT PICTURE and WR GET CURSOR POSITION commands.
See Also