Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Bitmap destImage = new Bitmap(srcImage.Width, srcImage.Height);
- using (Graphics gr = new Graphics.FromImage(destImage))
- {
- Point[] destPts = new Point[] { new PointF(x1, y1),
- new PointF(x2, y2), new PointF(x4, y4)};
- gr.DrawImage(srcImage, destPts);
- Bitmap destImage = new Bitmap(srcImage.Width, srcImage.Height);
- using (Graphics gr = new Graphics.FromImage(destImage))
- {
- Point[] destPts = new Point[] { new PointF(x1, y1), new PointF(x2, y2),
- new PointF(x3, y3), new PointF(x4, y4)};
- gr.DrawImage(srcImage, destPts);
- }
Add Comment
Please, Sign In to add comment