Commit ec422156 by doszhang

dos

parent 12674011

4 KB | W: | H:

4 KB | W: | H:

Public/static/image2/._poster-tophalf.png
Public/static/image2/._poster-tophalf.png
Public/static/image2/._poster-tophalf.png
Public/static/image2/._poster-tophalf.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -356,6 +356,12 @@ function createPoster() {
posterCtx.fillStyle = bgColor;
posterCtx.fillRect(0, 0, posterCanvas.width, posterCanvas.height);
//45 107
let topHalf = new Image();
topHalf.src = picUrl + "poster-tophalf.png";
topHalf.onload = function () {
posterCtx.drawImage(topHalf, pxToRem(45), pxToRem(107), pxToRem(550), pxToRem(382));
}
}
......
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 sign in to comment