Advertisement
Guest User

Untitled

a guest
Oct 25th, 2016
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.47 KB | None | 0 0
  1.  
  2.             newPoint center = funcCentrPoint();
  3.             double kx = (double)set_sc_x.Value;
  4.             double ky = (double)set_sc_y.Value;
  5.             foreach (newPoint p in points)
  6.             {
  7.                 p.X -= centerPoint.X;
  8.                 p.Y -= centerPoint.Y;
  9.                 p.X = (int)(p.X * kx);
  10.                 p.Y = (int)(p.Y * ky);
  11.                 p.X += centerPoint.X;
  12.                 p.Y += centerPoint.Y;
  13.             }
  14.             redrawImage();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement