This example is taken from the official site:
Code: Select all
1. #include <Magick++.h>
2. using namespace std;
3. using namespace Magick;
4. int main(int argc,char **argv)
5. {
6. InitializeMagick(*argv);
7. Image image( "100x100", "white" );
8. image.pixelColor( 49, 49, "red" );
9. image.write( "red_pixel.png" );
10. return 0;
11. }
Error message (translated):
p.s. a similar problem with the function read () ...Unhandled exception at "0x000007fef0981426" in "ImageMagicTest2.exe": 0xC0000005: Access violation reading "0xffffffffffffffff".
Sincerely, Andrew
UPDATED: I changed Debug to Release