Re: Very simple question
- From: Matthias Clasen <mclasen redhat com>
- To: Tristan Van Berkom <vantr touchtunes com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Very simple question
- Date: Fri, 13 Aug 2004 14:40:21 -0400
On Fri, 2004-08-13 at 14:40, Tristan Van Berkom wrote:
Michael Satterwhite wrote:
[...]
Is there a widget that can display a .jpg / .png / etc - preferably with some
scaling ability?
See:
http://developer.gnome.org/doc/API/2.0/gtk/GtkImage.html
and see gdk_pixbuf_* functions for basic functionality of scaling/compositing
and I think there was some rotation support added, not sure if it made it
to GTK+-2.4 though.
Rotation by multiples of 90 will be supported in 2.6.
Note that for jpegs, you will likely want something else,
since jpeg->pixbuf->rotated pixbuf->jpeg is a lossy transformation.
So at least if you want to save the rotated jpegs, you should
try to rotate the jpeg coefficient matrix directly. I don't
know if libjpeg supports that, though.
Matthias
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]