图像格式转换程序

图像格式转换程序


#using <system.drawing.dll>

using namespace System;
using namespace System::Drawing;
using namespace System::Drawing::Imaging;

int main(array<System::String ^> ^args)
{
    Image^ image  = Image::FromFile("c:\\1.bmp");
    image->Save("c:\\1.png", ImageFormat::Png);
    image->Save("c:\\1.jpg", ImageFormat::Jpeg);
    image->Save("c:\\1.gif", ImageFormat::Gif);
    image->Save("c:\\1.ico", ImageFormat::Icon);
    image->Save("c:\\1.emf", ImageFormat::Emf);
    return 0;
}

你可能感兴趣的:(图像格式转换程序)