The imageSize attribute defines the width and height of the bounding rectangle of a picture as displayed by an image survey item.
<image>
or
/ imageSize = (widthexpression, heightexpression)Name | Type | Description |
---|---|---|
width | extent | The width of the rectangle in pixels (default), percent, or points. |
height | extent | The height of the rectangle in pixels (default), percent, or points. |
widthexpression | value | An expression resolving to the width of the rectangle in pixels (default), percent, or points. If width is set to null and a height is specified, the width is set to the pixel size of the height. |
heightexpression | value | An expression resolving to the height of the rectangle in pixels (default), percent, or points. If height is set to null and a width is specified, the height is set to the pixel size of the width. |
The imageSize attribute allows pictures to be scaled to the appropriate size for inclusion in a survey.
The following presents a picture sized to fit within a 100 by 200 pixel rectangle.
<image question1>
/ items=("question1.jpg")
/ imageSize=(100, 200)
</image>