Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- newPoint center = funcCentrPoint();
- double kx = (double)set_sc_x.Value;
- double ky = (double)set_sc_y.Value;
- foreach (newPoint p in points)
- {
- p.X -= centerPoint.X;
- p.Y -= centerPoint.Y;
- p.X = (int)(p.X * kx);
- p.Y = (int)(p.Y * ky);
- p.X += centerPoint.X;
- p.Y += centerPoint.Y;
- }
- redrawImage();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement