Hi,
Here a short code :
void send2jpeg (u32 xsize, u32 ysize, s32 *data)
{
try {
Image image (Geometry(xsize,ysize), Color(MaxRGB, MaxRGB, MaxRGB, 0));
image.draw(DrawableLine (xsize*0.10,ysize*0.10, xsize*0.10, ysize*0.90));
image.draw(DrawableLine (xsize*0.10,ysize*0.90, xsize*0.90, ysize*0.90));
image.magick ("JPEG");
image.write ("spectrum");
}
catch( exception &error_ )
{
cout << "Caught exception: " << error_.what() << endl;
return;
}
return;
}
I just want trace two line. I obtain my 2 lines or only one line and line is corrupted. Sometimes I have too a segfault.
Do you have an idea why please ? I use magick++ 6.6.2-0 (last version). (idem when I use PNG format)
|_ or | or segfault
Regards.