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
Parameter | Type | Required | Description |
strFile | String | No | Optional parameter containing the path for the file. |
nFormat | Format (Enumeration) | No | Optional parameter containing the format for the file. |
nBPP | Number | No | Optional parameter containing the number of bits per pixel for the file. |
nLeft | Number | No | Optional parameter which specifies the left coordinate of the rectangle to save. |
nTop | Number | No | Optional parameter which specifies the top coordinate of the rectangle to save. |
nWidth | Number | No | Optional parameter which specifies the width of the rectangle to save. |
nHeight | Number | No | Optional 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