The following code example demonstrates the
![]() |
---|
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 Me. To download the latest redistributable, see |
Example
В | ![]() |
---|---|
#using <system.drawing.dll> using namespace System; using namespace System::Drawing; using namespace System::Drawing::Imaging; int main() { Image^ image = Image::FromFile("SampleImage.jpg"); image->Save("SampleImage.png", ImageFormat::Png); image->Save("SampleImage.bmp", ImageFormat::Bmp); return 0; } |