IMcFilesStore Method
|
|
This method stores an McImage to a file. If the OutputPrefix property is set,
that string is used as the base for the file name. Then the method will determine
the next OutputNumber to append to the OutputPrefix, and finally the extension of
the format indicated by OutputStream. If the Overwrite flag is not set, the method
will increment OutputNumber until a unique filename is found. If the Overwrite flag
is set, the image is written despite any existing files with the same name. After
writing, the OutputNumber is incremented by one.
If the OutputPrefix is not set, the FileName of the OutputStream is used as the FileName.
The String of the FileName used to store the image is returned in either case.
Namespace:
MediaCy.IQL.IO
Assembly:
MediaCy.IQL.IO (in MediaCy.IQL.IO.dll) Version: 10.0.6912.0
SyntaxFunction Store (
pImage As McImage,
Optional FileName As String = ""
) As String
Parameters
- pImage
- Type: MediaCy.IQL.EngineMcImage
The McImage you wish to store - FileName (Optional)
- Type: SystemString
an optional argument that is the name of the file you wish to store
the image as. If this is not supplied, the OutputPrefix and OutputNumbers are used.
If these are not supplied, the McStream.FileName is used. If this is not supplied,
an error returns.
Return Value
Type:
StringString StoredName - The filename used to store the McImage.
RemarksUsed primarily by Screen Capture
Examples
ImageFiles.OutputStream.Format = "jpg"
ImageFiles.Store (ActiveImage, "c:\temp\first.jpg")
ImageFiles.OutputStream.Format = "tif"
ImageFiles.OutputPrefix = "Capture"
ImageFiles.OutputNumbers = 100
ImageFiles.Store ActiveImage
ImageFiles.Store ActiveImage
See Also