code_junkie

How do you copy from a rectangular source region to a non-rectangular/non-paralellogram destination region in .NET?

Nov 12th, 2011
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. using (Graphic g = this.CreateGraphics())
  2. {
  3. List<Point> pts = new List<Point>();
  4. pts.Add(new Point(0, 0));
  5. pts.Add(new Point(100, 0));
  6. pts.Add(new Point(10, 100));
  7. g.DrawImage(pbSource.Image, pts.ToArray());
  8. }
Add Comment
Please, Sign In to add comment