Page 1 of 1

Posted: 2006-06-12T09:37:39-07:00
by magick
Change
  • PixelPacket *pixels = view.get(columns,rows,width,height);
to
  • 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.