Visual Basic Reference

StdPicture Object

See Also    Example    Properties    Methods    Events

The StdPicture object enables you to manipulate bitmaps, icons, metafiles enhanced metafiles, GIF, and JPEG images assigned to objects having a Picture property.

Syntax

StdPicture

Remarks

You frequently identify a StdPicture object using the Picture property of an object that displays graphics (such as a Form object or a PictureBox control). If you have a PictureBox control named Picture1, you can set its Picture property to a StdPicture object using the Set statement, as in the following example:

Dim X As New StdPicture
Set X = LoadPicture("c:\windows\circles.bmp")
Set Picture1.Picture = X

You can use an array of StdPicture objects to keep a series of graphics in memory without needing a form that contains multiple PictureBox or Image controls.