image.writeBase64()
Writes Base64 images to the specified filename and destination.
image.writeBase64( destination=string, format=string, inHTMLFormat=boolean )
Returns: String
| Argument | Description |
|---|---|
|
destination
string,
required
|
edit
The path for the destination file. |
|
format
string,
required
|
edit
the image format |
|
inHTMLFormat
boolean,
optional
|
edit
Specify whether Base64 output includes the headers used by the Base64 images in the HTML "img" tag ("data:image/{format};base64,...") :
|
Examples
edit imgObj = imageNew("",200,200,"rgb","red");
imgObj.writeBase64('base64.txt','jpg','true');