Have you tried below code? If not then try this code:
Code:
usingSystem;
usingSystem.Collections.Generic;
usingSystem.ComponentModel;
usingSystem.Data;
usingSystem.Drawing;
usingSystem.Text;
usingSystem.Windows.Forms;
namespaceWindowsApplication1
{
publicpartial classForm1: Form
{
publicForm1 ()
{
Initialize Component ();
}
private voidbutton1_Click (objectsender, EventArgs e)
{
using(Bitmap bmp = newBitmap (@"d: My Documents Desktop ico test.jpg"))
{
Graphics g = this. CreateGraphics ();
Rectangle rect = newRectangle (0, 0, 100, 100);
bmp.RotateFlip (RotateFlipType.RotateNoneFlipX);
g.DrawImage123 (bmp, rect);
}
}
}
}
Bookmarks