AutoSize, Stretch, Tile Properties

Purpose

Control how a graphic is displayed in an Image control.

Syntax

Image.AutoSize [= Boolean]

Image.Stretch [= Boolean]

Image.Tile [= Boolean]

Description

AutoSize = True The Image control resizes to fit the image.
AutoSize = False (Default) The Image control does not resize.
Stretch = True The graphic resizes to fit the control. Resizing the control also resizes the graphic it contains.
Stretch = False (Default) The graphic keeps it original size.
Tile = True The graphic is tiled across the Image control.
Tile = False (Default) The graphic keeps it original size and position.

Remarks

A Form OCX control can also be used to display a picture. A Form OCX is the GFA-BASIC 32 implementation of a VB PictureBox.

See Also

Image, Form

{Created by Sjouke Hamstra; Last updated: 12/05/14 by James Gaite}