[Fixed] Trouble with Beta version on Windows
Posted: 2014-05-14T19:45:50-07:00
I'm just testing out the new channel stuff in the beta version with the following code:
This seems to work on Linux but fails on Windows (with any image, built with VS2012) because coreImage->channel_map is null. It doesn't seem to be null if I use the debugger to dig into the Magick::Image object to inspect the value of channel_map, but it is null on the pointer returned from the Magick::Image::image() function. Anyone have any idea what's going on here?
Code: Select all
#include <Magick++.h>
int main(int argc, char** argv)
{
Magick::Image image("wizard.jpg");
MagickCore::Image* coreImage = image.image();
for (int i = 0; i < image.channels(); ++i)
MagickCore::PixelChannel channel = MagickCore::GetPixelChannelChannel(coreImage, i);
return 0;
}