JavaScript EditorDhtml editor     Free javascript download 

Main Page

The following code example demonstrates the use of the System.Drawing.Image class to load an image from disk, rotate it 90 degrees, and save it as a new .jpg file.


GDI+ is included with WindowsВ XP and is available as a redistributable for WindowsВ NT 4.0 SP 6, WindowsВ 2000, WindowsВ 98, and Windows Millennium Edition. To download the latest redistributable, see For more information, see GDI+.


В CopyCode imageCopy Code
#using <system.drawing.dll>

using namespace System;
using namespace System::Drawing;

int main()
   Image^ image = Image::FromFile("SampleImage.jpg");
   image->RotateFlip( RotateFlipType::Rotate90FlipNone );
   return 0;

See Also

JavaScript EditorDhtml editor     Free javascript download