VLViewPort Reference

Read/Write Property Picture

See AlsoSee Also Applies To Applies To

Returns or sets a graphic to be used as background for the viewport.

 

Syntax

object.Picture [= picture]

 

The Picture property syntax has these parts:

Part Description
object An object expression that evaluates to VLVPort
picture A string expression specifying a file containing a graphic, as described in Settings.

Settings

The settings for Picture are:

Setting Description
(None) (Default) Draws the viewport background as per the BackColor settings.
(Bitmap, icon) Specifies a graphic. You can load the graphic from the Properties window at design time. At run time, you can also set this property using the LoadResPicture function from a resource file.

 

Remarks

At design time, you can transfer a graphic with the Clipboard using the Copy, Cut, and Paste commands on the Edit menu.

If the picture size is smaller than the virtual size of the viewport, the picture will be tiled in the viewport.