>
> 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:part1.04090003.06050505@...> () 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();

On Fri, 15 Apr 2005, Jason Heblack wrote:
> Hi--- using :Windows XP GraphicsMagick-1.1.5
>
> Most of the image manipulation functions like charcoal, swirl, and wave end
> up outputting mangled images for some reason that do not appear at all like
> the originial. What would be the problem???
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.
Bob
>
>
> Image image;
> Image image(218,342,"RGB",CharPixel,splash_jpg);
> image.read(218,342,"RGB",CharPixel,splash_jpg);
> image.charcoal(); //
> image.write( "x.jpg" );
>
>
>
> -------------------------------------------------------
> 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
> _______________________________________________
> Graphicsmagick-bugs mailing list
> Graphicsmagick-bugs@...
> https://lists.sourceforge.net/lists/listinfo/graphicsmagick-bugs
>
======================================
Bob Friesenhahn
bfriesen@..., http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/

Hi Bob, without any additional image processing operations, the image
displays fine. If there is a manipulation on the image then the image
doesn't display in my program like it does when there is no image
manipulation. Writing the image to a file after manipulation and then
loading the image with Gimp shows that the image is mangled. Here is
the data array I'm using
:
const unsigned char splash_jpg[]={
0xff,0xd8,0xff,0xe0,0x00,0x10,0x4a,0x46,0x49,0x46,0x00,0x01,0x01,0x01,0x00,0x48,
... };
The image is an indexed grayscale image I think... all gray colors.
When saved as GIF format in the above array there is the same problem
>
> I assume that without these additional image processing operations the
> image is written ok? What is the nature of your 'splash_jpg' data? Is
> the image in color, or is it a gray image?
>
> Have you tried writing to some other format besides JPEG to see if it
> is then ok?
>
> Bob
>
>>
>>
>> Image image;
>> Image image(218,342,"RGB",CharPixel,splash_jpg);
>> image.read(218,342,"RGB",CharPixel,splash_jpg);
>> image.charcoal(); //
>> image.write( "x.jpg" );
>>
>>
>>
>> -------------------------------------------------------
>> 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
>> _______________________________________________
>> Graphicsmagick-bugs mailing list
>> Graphicsmagick-bugs@...
>> https://lists.sourceforge.net/lists/listinfo/graphicsmagick-bugs
>>
>
> ======================================
> Bob Friesenhahn
> bfriesen@...,
> http://www.simplesystems.org/users/bfriesen/
> GraphicsMagick Maintainer, http://www.GraphicsMagick.org/
>
>
> -------------------------------------------------------
> 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
> _______________________________________________
> Graphicsmagick-bugs mailing list
> Graphicsmagick-bugs@...
> https://lists.sourceforge.net/lists/listinfo/graphicsmagick-bugs
>
>
>

On Fri, 15 Apr 2005, Jason Heblack wrote:
> Hi--- using :Windows XP GraphicsMagick-1.1.5
>
> Most of the image manipulation functions like charcoal, swirl, and wave end
> up outputting mangled images for some reason that do not appear at all like
> the originial. What would be the problem???
I assume that without these additional image processing operations the
image is written ok? What is the nature of your 'splash_jpg' data?
Is the image in color, or is it a gray image?
Have you tried writing to some other format besides JPEG to see if it
is then ok?
Bob
>
>
> Image image;
> Image image(218,342,"RGB",CharPixel,splash_jpg);
> image.read(218,342,"RGB",CharPixel,splash_jpg);
> image.charcoal(); //
> image.write( "x.jpg" );
>
>
>
> -------------------------------------------------------
> 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
> _______________________________________________
> Graphicsmagick-bugs mailing list
> Graphicsmagick-bugs@...
> https://lists.sourceforge.net/lists/listinfo/graphicsmagick-bugs
>
======================================
Bob Friesenhahn
bfriesen@..., http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/

Hi--- using :Windows XP GraphicsMagick-1.1.5
Most of the image manipulation functions like charcoal, swirl, and wave
end up outputting mangled images for some reason that do not appear at
all like the originial. What would be the problem???
Image image;
Image image(218,342,"RGB",CharPixel,splash_jpg);
image.read(218,342,"RGB",CharPixel,splash_jpg);
image.charcoal(); //
image.write( "x.jpg" );

Hi--- using :Windows XP GraphicsMagick-1.1.5
Most of the image manipulation functions like charcoal, swirl, and wave
end up outputting mangled images for some reason that do not appear at
all like the originial. What would be the problem???
Image image;
Image image(218,342,"RGB",CharPixel,splash_jpg);
image.read(218,342,"RGB",CharPixel,splash_jpg);
image.charcoal(); //
image.write( "x.jpg" );