SavePicture

Saves a picture object to a file.

Syntax

[lResult =] SavePicture ( ppic, sFilename )

The SavePicture procedure syntax has the following parts:

 

Name

Type

Description

lResult

Long

Returned result code, 0 for success.

ppic

Val APicture

Internal ATEasy Picture object

sFilename

Val BString

Filename

Comments

v3-v9. The only file format supported is bitmap (.bmp). Passing a different file extension to sFileName will result with a bitmap file.

v10. The sFileName can specify files with the file extension bmp, emf, wmf, jpg, png, gif, tif, bmp, wmf, emf, and ico.

Example

The following examples saves the chart control image to a temporary file and appends the image to HTML log:

 

SavePicture(cht.Image, "c:\\temp\\~a.bmp")

print "<IMG SRC=\"c:\\temp\\~a.bmp\">"

See Also

APicture, Image, LoadPicture