Function TWPOCustomImage.SaveToFile(path:string; filename:string; RenameFormatString:string; Compress:Boolean; DestStream:TMemoryStream) : string

Unit: WPOBJ_Image
Class: WPOBJ_Image.TWPOCustomImage

Parameters

  • path:string
  • filename:string
  • RenameFormatString:string
  • Compress:Boolean
  • DestStream:TMemoryStream

Returns

The type of the result value is string.

Description

This functions saves the contents of this object to a file. The filename will be used without any extension specified. If the file already exists a new filename is created using a number fed into the Format() function with the format string passed as RenameFormatString. The default is '%d'. If you do not want renaming pass RenameFormatString as string without number placeholder (%d).