You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I used the new mOxie.image.Image () method, the picture went wrong all the time, and the error was not clear.
The code is as follows
`
var preloader = new mOxie.image.Image();
preloader.onload = function () {
var imgsrc = preloader.type == 'image/jpeg' ? preloader.getAsDataURL('image/jpeg', 80) : preloader.getAsDataURL();
preloader.destroy();
preloader = null;
};
preloader.onerror = function (e) {
console.log(e);
};
preloader.load(file.getSource());`
file is a object:
After running, the program has been going into the onerror,and error is as follows
Please help you, thank you.
The text was updated successfully, but these errors were encountered:
When I used the new mOxie.image.Image () method, the picture went wrong all the time, and the error was not clear.
The code is as follows
`
var preloader = new mOxie.image.Image();
file is a object:
After running, the program has been going into the onerror,and error is as follows
Please help you, thank you.
The text was updated successfully, but these errors were encountered: