Marblecore Imaging Library Documentation

Documentation Introduction
Documentation / Marblecore Imaging / Methods / SaveToFile

SaveToFile method

Saves the current working image to a file using the specified path. If no path is specified and the LoadFile method is used to load the current image, the image is saved to its original path.

Syntax

Boolean SaveToFile(strFile As String, nFormat As Format, nBPP As Number, nLeft As Number, nTop As Number, nWidth As Number, nHeight As Number)

Return value

Returns true if the function succeeded.

Parameters

ParameterTypeRequiredDescription
strFileStringNoOptional parameter containing the path for the file.
nFormatFormat (Enumeration)NoOptional parameter containing the format for the file.
nBPPNumberNoOptional parameter containing the number of bits per pixel for the file.
nLeftNumberNoOptional parameter which specifies the left coordinate of the rectangle to save.
nTopNumberNoOptional parameter which specifies the top coordinate of the rectangle to save.
nWidthNumberNoOptional parameter which specifies the width of the rectangle to save.
nHeightNumberNoOptional parameter which specifies the height of the rectangle to save.

Category

Basic operations

See also

Create | Deserialize | LoadFromBase64 | LoadFromFile | LoadFromSerializedStream | LoadFromStream | LoadFromURL | Reset | SaveToBase64 | SaveToHBitmap | SaveToHBitmapPreMultiplied | SaveToStream | Serialize