ImageMan ActiveX Control Version 8
SaveAs Method
See Also  Example  Send comments on this topic.
FileName
Specifies the filename the image should be saved as. If this parameter is an empty string the control will display a File Save Dialog to prompt the user for a filename.
SaveAttributes
This optional value specifies a collection of Attributes to be used when saving the image.

Glossary Item Box

Description

Saves the current image or the specified portion into a file of the specified name and type.

Syntax

Visual Basic
Public Function SaveAs( _
   ByVal FileName As String, _
   Optional ByRef SaveAttributes As Variant _
) As String

Parameters

FileName
Specifies the filename the image should be saved as. If this parameter is an empty string the control will display a File Save Dialog to prompt the user for a filename.
SaveAttributes
This optional value specifies a collection of Attributes to be used when saving the image.

Return Type

The return value is the name of the saved file or an empty string if the user selected cancel in the dialog.

Remarks

To save only a portion of an image use the SrcTop, SrcLeft, SrcRight and SrcBottom properties to specify the portion.

Example

(Visual Basic)Copy Code
' Save the Image as c:\my.tif with no Attributes specified
ImageControl1.SaveAs = "C:\my.tif"

' Display a FileSave Dialog and return the selected filename
savedfile = ImageControl1.SaveAs( "", attrs)

See Also

© 2014 Data Techniques Inc. All Rights Reserved.