Method ApplyPixelSnapping
ApplyPixelSnapping(SKCanvas)
Convenience: apply the pixel-snapping translate to the canvas. It saves the canvas state and returns an IDisposable that restores when disposed: using (ApplyPixelSnapping(canvas)) { ... } // paints inside will be offset
public static SKAutoCanvasRestore ApplyPixelSnapping(SKCanvas canvas)
Parameters
canvasSKCanvasThe canvas to translate.
Returns
- SKAutoCanvasRestore
An SKAutoCanvasRestore that will restore the canvas when disposed.