Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio 6.0
Visual Basic 6.0
Reference
Language Reference
Statements
R-Z
 SavePicture Statement

  Switch on low bandwidth view
 
Visual Basic Reference

SavePicture Statement

See Also    Example

Saves a graphic from the Picture or Image property of an object or control (if one is associated with it) to a file.

Syntax

SavePicture picture, stringexpression

The SavePicture statement syntax has these parts:

Part Description
picture Picture or Image control from which the graphics file is to be created.
stringexpression Filename of the graphics file to save.

Remarks

If a graphic was loaded from a file to the Picture property of an object, either at design time or at run time, and its a bitmap, icon, metafile, or enhanced metafile, it's saved using the same format as the original file. If it is a GIF or JPEG file, it is saved as a bitmap file.

Graphics in an Image property are always saved as bitmap (.bmp) files regardless of their original format.

© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker