HTML5 canvas clip() doesn't work in Chrome when rotation is applied

后端 未结 2 979
别那么骄傲
别那么骄傲 2021-01-07 04:17

I\'m trying to use a clip region on a canvas and it stops working as soon as the coordinate system is rotated by any non zero value:

2条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-07 04:30

    In Chrome, drawImage() is done before Image loaded, you have to check like this:

    
    
    
    
        
        
    
    

提交回复
热议问题