> Jean-Pierre Lefebvre wrote:
> > Hello,
> >
> > I am learning FLTK, and I'm trying to create a GUI.
> > I manage to insert a picture on my interface, but I'm not able to resize 
> > the picture (JPEG picture) in my window.
> > Here is the code I developped :
> > *-----------------------------------------------------------
> >   fl_register_images();
> >   Fl_JPEG_Image *Tool_FSW = new 
> > Fl_JPEG_Image("/disk3/home/lefebvre/MorfeoGUI/Tool.jpeg");
> >   Fl_Box *Tool_FSW_Box = new Fl_Box(2 * WB, voffset + 3*WB, 27 * WB, 20 * 
> > WB);
> >   Tool_FSW_Box->box(FL_UP_BOX);
> >   Tool_FSW_Box->image(Tool_FSW);
> > *-----------------------------------------------------------
> >
> > Do you have some idea about how resizing a picture ?
>
> Fl_[JPEG_]Image::copy(int W, int H)
>
> lets you copy an image with a new size. However, the resizing is done
> with a somewhat trivial algorithm, so don't expect high quality results.
>
> If you need to resize the image more than once, keep the original and
> copy this to a new one whenever you need it for better results (don't
> copy the copy ...).
>
> Albrecht

Is there an alternative to this resizing algorithm in fltk(could be even a 
third part library), like a bilinear algorithm or something like that?
Because the results are not good enought to use, especially
when dealing with transparent image with shapes.

Thanks,
J.Marcelo Auler

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to