Command WR GET PICTURE SIZE

4D Write

WR GET PICTURE SIZE

version 6.5


WR GET PICTURE SIZE (area; width; height; origWidth; origHeight)

ParameterTypeDescription
areaLongint4D Write area
widthNumberCurrent width of the picture
heightNumberCurrent height of the picture
origWidthNumberWidth of the original picture
origHeightNumberHeight 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

WR GET PICTURE IN PAGE INFO, WR SET PICTURE SIZE.