Example #1
0
 private static void ApplyTransform(this SKCanvas canvas, Transform.ScaleRelativeOrigin transformOperation, Size renderSize)
 {
     canvas.Scale((float)transformOperation.X, (float)transformOperation.Y, (float)(transformOperation.XOffset * renderSize.Width), (float)(transformOperation.YOffset * renderSize.Height));
 }
Example #2
0
 private static void ApplyTransform(this SKCanvas canvas, Transform.ScaleRelativeOrigin transformOperation)
 {
     canvas.Scale((float)transformOperation.X, (float)transformOperation.Y, (float)transformOperation.XOffset * canvas.LocalClipBounds.Width, (float)transformOperation.YOffset * canvas.LocalClipBounds.Height);
 }