프로그램 세상/C#
[C#] BMP 이미지 회전 및 대칭 회전
소년포비
2009. 10. 24. 02:05
using (Bitmap bmp = new Bitmap (@"C:\Documents and Settings\purred\My Documents\My Pictures\20040613-022147.jpg"))
{
// 이미지 회전
bmp.RotateFlip (RotateFlipType.Rotate180FlipNone);
// 이미지 대칭
bmp.RotateFlip (RotateFlipType.RotateNoneFlipX);
Graphics g = e.Graphics;
g.DrawImage (bmp as Image, new PointF (0, 0));
}