uni.canvasToTempFilePath({
x:0,
y:0,
width:280,
height:360,
destWidth: 280,
destHeight: 360,
fileType:'jpg',
canvasId: 'firstCanvas',
quality:1,
success: function(res) {
console.log(res.tempFilePath)
uni.saveImageToPhotosAlbum({
filePath:res.tempFilePath,
success: function (res) {
console.log(res.path);
}
});
}
})
0 个回复