Commit d5841a28 authored by qipeng's avatar qipeng

画布截图

parent 90422217
......@@ -106,10 +106,10 @@ export default {
arrayInfo[i].width * dpr, arrayInfo[i].height * dpr)
imageIndex++
} else if (arrayInfo[i].type == 'image1') {
console.log(arrayInfo[i].swidth*dpr+','+arrayInfo[i].sheight*dpr+','+arrayInfo[i].width*dpr+','+arrayInfo[i].height*dpr)
console.log(arrayInfo[i].swidth*dpr+','+arrayInfo[i].sheight*dpr+','+arrayInfo[i].width*dpr+','+arrayInfo[i].height*dpr+','+arrayInfo[i].posX+','+arrayInfo[i].posY)
ctx.drawImage(imageArray[imageIndex],
0,0,arrayInfo[i].swidth * dpr,arrayInfo[i].sheight * dpr,
arrayInfo[i].posX * dpr, arrayInfo[i].posY * dpr,arrayInfo[i].width * dpr, arrayInfo[i].height * dpr)
0,0,arrayInfo[i].width * dpr,arrayInfo[i].height * dpr,
arrayInfo[i].posX * dpr, arrayInfo[i].posY * dpr,arrayInfo[i].swidth * dpr, arrayInfo[i].sheight * dpr)
imageIndex++
}
}
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment