sketch icon indicating copy to clipboard operation
sketch copied to clipboard

how to get the real pixel xy

Open dekacaishui opened this issue 1 year ago • 1 comments

Hi, I would like to draw a cross on sketch zoom view, I use getMatrix() function to get the matrix and calculate the new xy after zoom in or zoom out, but failed, could anyone help me that how to get the real pixel xy and how to get the correct matrix to calculate the xy after zoom? capture

dekacaishui avatar Sep 10 '22 02:09 dekacaishui

你只需要 先 ‘canvas.concat(matrix)’ 然后再正常绘制你的十字星即可

panpf avatar Sep 21 '22 05:09 panpf