Am 29.04.2009 19:52 Uhr schrieb "Albrecht Schlosser" unter
<[email protected]>:

> Benjamin Kirchholtes wrote:
>> 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.
> 
> 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.

A more complicated but highly efficient way would be to use OpenGL, generate
a texture map (preferably with mip-mapping for zooming out) and you can zom
and shift and twist your images in real-time all over the place.

Matthias


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

Reply via email to