Setting pixels on monochrome picture fails

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
User avatar
Site Admin
Posts: 11072
Joined: 2003-05-31T11:32:55-07:00

Post by magick » 2006-06-12T09:37:39-07:00

  • PixelPacket *pixels = view.get(columns,rows,width,height);
  • PixelPacket *pixels = view.get(columns,rows,1,1);
and your program should work. You should always check the return value. In your program pixels was being returned as NULL and you can't write to a NULL pointer.

Post Reply