## The `imagesize' property

Two-element numeric vector

Valid for: Image, Picture, Grid, ImageList (ImageList not implemented under MacOS)

For an ImageList, the `imagesize` property determines the size of the images in the list (they all have the same size). The first element is the height, and the second the width, in the current `scale` of the ImageList.

Note: If you change this property, any images you have added using the `Addimages` method will be removed from the ImageList.

For a Picture or Grid, the `imagesize` property holds the size (in current `scale` units) of the image displayed in the control. This may be larger than or smaller than the `size` property of the object. If it is larger, and the `style` property is set to show scroll bars, the user can use the control's scroll bars to scroll the image within the visible area.

For a Grid object, this property is read-only. It is equivalent to the sums of all the row and column sizes in the Grid.

For an Image object, this property contains the size of the image. If you change it, the image will be rescaled to the new size.

Topic: APLX Help : System Classes : Properties : imagesize

[ Previous | Next | Contents | Index ]