如何在cpp ImageMagick-7.0.7-Q16中检查分辨率?

时间:2017-10-14 10:34:39

标签: c++ image imagemagick

#include <stdio.h>
#include <iostream>
#include <fstream>
#include <string>
#include <Magick++.h>
#include <list>
using namespace std;
using namespace Magick;

int main(int argc, char **argv) {

try {
    InitializeMagick(*argv);
    Image my_image("D:\\test.jpg");
    unsigned int x;
    unsigned int columns(x); 

    cout << "width: " << x << endl;

}
catch (Magick::Exception & error) {
    cerr << "Caught Magick++ exception: " << error.what() << endl;
}
getchar(); 
return 0;
}

这不起作用。请帮忙

simillar问题在这里没有答案 Magick++ undefined reference to Magick::Image::Columns

0 个答案:

没有答案