unrecognized pixel map error| VS2015 x64 Modified Demo\Button.dsp
Posted: 2016-04-12T23:35:02-07:00
Hi,
I could really use some help. I'm receiving an error, "Caught exception: button.exe: unrecognized pixel map `p' @ error/pixel.c/ExportImagePixels/2065", when using the image.write() command. I think it has something to do with the project configuration, presumably arising due to the automatic conversion to Visual Studio 2015.
I'm using the packaged 'button' demo project, and the only modification I've made is replacing "button.write("button_out.miff");" with the following:
char* pixels;
char s[] = { 'p' };
button.write(0, 0, 1, 1, s, MagickCore::StorageType::UndefinedPixel, &pixels);
I believe the error stems from converting the demo project to VS2015, as the exception isn't caught on ubuntu. The only changes I've made beyond the automatic conversion are changing the solution platform from x86 to x64, and copying across the settings from x86 (else it wouldn't build). I found this slightly weird as its from the 64bit build of ImageMagick, but maybe I'm missing something. The only other change I've made is setting the linker output to the x64\Release directory. Is there anything I'm missing? Any suggested changes to the project configuration? Thanks in advance for any help.
I could really use some help. I'm receiving an error, "Caught exception: button.exe: unrecognized pixel map `p' @ error/pixel.c/ExportImagePixels/2065", when using the image.write() command. I think it has something to do with the project configuration, presumably arising due to the automatic conversion to Visual Studio 2015.
I'm using the packaged 'button' demo project, and the only modification I've made is replacing "button.write("button_out.miff");" with the following:
char* pixels;
char s[] = { 'p' };
button.write(0, 0, 1, 1, s, MagickCore::StorageType::UndefinedPixel, &pixels);
I believe the error stems from converting the demo project to VS2015, as the exception isn't caught on ubuntu. The only changes I've made beyond the automatic conversion are changing the solution platform from x86 to x64, and copying across the settings from x86 (else it wouldn't build). I found this slightly weird as its from the 64bit build of ImageMagick, but maybe I'm missing something. The only other change I've made is setting the linker output to the x64\Release directory. Is there anything I'm missing? Any suggested changes to the project configuration? Thanks in advance for any help.