Graphic size

height = integer

width = integer

The height and width of the graphic. The values required depend on the graphic type. The minimum possible value is 1; there is no maximum, but any part of a graphic which extends beyond the border of its parent window is invisible.

GT_HLINE

The width must be supplied. If a height is supplied it is ignored.

GT_VLINE

The height must be supplied. If a width is supplied it is ignored.

GT_RECTANGLE

Both height and width must be supplied.

GT_IMAGE

Height and/or width may, optionally, be specified in order to scale the image, though images generally look best if these clauses are omitted and the image’s native size used. If the width or height is set (but not both), and the style flag WS_SCALE assigned, the other dimension is scaled so that the aspect ratio of the image is maintained.

GT_ANIMATE

The width and height are defined in the .avi file specified in the image clause.

GT_PROGRESS

Both clauses may be omitted, in which case sensible defaults are used.

In a character grid, the only valid heights are 0 (use the default), 1 and 2. The width defaults to a suitable value for 5% increments of the progress bar if the height is 0 or 1, or to 10% increments if the height is 2.

From Sculptor 5 onwards, size may be expressed in pixels or in characters. The !chargrid declaration specifies which method is in use. In earlier versions character sizing (columns and rows) must be used. See Pixel and character positioning.


RELATED TOPICS

Graphics