PictureSizeMode Property

Applies To   Form, Report.

Description

You can use the PictureSizeMode property to specify how a picture for a form or report is sized.

Setting

The PictureSizeMode property uses the following settings.

Setting

Description

Visual Basic

Clip

(Default) The picture is displayed in its actual size. If the picture is larger than the form or report, then the picture is clipped.

0

Stretch

The picture is stretched horizontally and vertically to fill the entire form, even if its original ratio of height to width is distorted.

1

Zoom

The picture is enlarged to the maximum extent possible while keeping its original ratio of height to width.

3


You can set the PictureSizeMode property by using a form's or report's property sheet, a macro, or Visual Basic.

Remarks

When a small picture is used for the Picture property of a form or report, setting the PictureSizeMode property to Stretch or Zoom can cause substantial distortion of its resolution. Smaller pictures can be tiled across the entire form or report by using the PictureTiling property.

See Also   Picture property, PictureAlignment property, PictureData property, PictureTiling property, PictureType property, SizeMode property.