Hi,

I'm new to Magick++ and I'd like to start out by saying thank you for
such a fine product.

My problem is that when I try to access the pixel data in an image
that has been scaled the image looks like noise (using my own display
routine), when I write the image to file it looks fine.

Here is a snippet of my code:

Image image.load( "baboon.gif" );

image.modifyImage();

image.scale( "50x50%" );

const PixelPacket *pixels =
    image.getConstPixels(0, 0, image.columns(), image.rows());

I then access the pixel values using:
pixels->red;
pixels->green;
pixels->blue;

This works fine as long as I don't scale the image. A few effects I've
tested are negate, solarize, and shade.

Any help is much appreciated,
John
_______________________________________________
Magick-developers mailing list
Magick-developers@imagemagick.org
http://studio.imagemagick.org/mailman/listinfo/magick-developers

Reply via email to