I have been using the Api ImageMagick++ on Visual Studio 2010 and it works perfectly.
But I'm in trouble with DPX files. Indeed, I load DPX images thank the read method of the Image Class and save them thank the write method like following :
Code: Select all
#include <Magick++.h>
#include <string>
#include <iostream>
using namespace std;
using namespace Magick;
int main( int /*argc*/, char ** argv)
{
// Initialize ImageMagick install location for Windows
InitializeMagick(*argv);
Image my_image;
my_image.read("a.dpx");
my_image.write("./out/b.tiff");
my_image.write("./out/c.dpx");
my_image.write("./out/d.bmp");
my_image.write("./out/e.jpg");
return 0;
}
Where does come from this darkness and is there a solution to my problem ?
Thx for your replies.
M.