Benjamin Kirchholtes wrote:
> Hello,
> 
> i'm displaying images in a scrollable box.
> Now i want to zoom in and out images...
> Could someone give me some help doing this?
> I had a look at the flphoto zoom function, but i
> don't really understand this code.
> I'm sorry to say that, but this code is a bit too complex for me.
> 
> Thanks a lot in advance

You didn't write, which FLTK version, thus I assume FLTK 1.x.

You can use Fl_image::copy() to resize the image, but this
is a low quality resizing method. Maybe it's enough for your
app, but maybe not. It's very easy to use, however.

Link: http://www.fltk.org/doc-1.1/Fl_Image.html#Fl_Image.copy

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

Reply via email to