Re: Image Manipulation problem
Jason Heblack <[email protected]> Fri, 15 Apr 2005 16:53:45 -0700
| Newsgroups | gmane.comp.video.graphicsmagick.bugs |
|---|---|
| Message-ID | <[email protected]> |
> > I suggest that you try changing your CharPixel read into a simple read > from a file name. See if the problem then goes away. If the problem > goes away, then that means there is some bug in the CharPixel reader. > This will help me diagnose what the problem may be. Yeah, reading from a file name and then calling an image manipulation function works but there is a problem displaying it afterwards. If the new image is saved to a regular file then there is no problem. The problem seems to be writing to and reading to an unsigned char array inside my program so that my program can display the new image data with it's own image display functions. If there is no image manipulation, the CharPixel data array displays fine but if there is a manipulation performed then the new image will not display on the screen. If saved to a file it will appear mangled. FXColor * getData <cid:[email protected]> () const Return pointer to the pixel data of the image. ... // need to read/write to an array so that the new image data can be used... // unsigned char temp_img[223668] ; // image.write(0,0,218,342,"RGB",CharPixel,temp_img); // FXJPGIcon *sp=new FXJPGIcon(getApp(),temp_img,FXRGB(192, 192, 192),FRAME_RAISED|LAYOUT_FILL_X|LAYOUT_FILL_Y); // sp->create(); ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click