Creates a new temporary image file from an ArrayBuffer of image data.

Example

var ImageTools = require("FuseJS/ImageTools");
ImageTools.getImageFromBuffer(imageData).
    then(function (image) { console.log("Scratch image path is: " + image.path); });

Location

Namespace
Fuse.ImageTools
Package
Fuse.ImageTools 1.9.0

Returns

Promise

a Promise of an Image