Re: Display jpeg image only use GTK instead of using imlib and gdk-pixbuf?



"david" <davidchen itri org tw> writes:
> Does anyone know that is pure GTK is able to do that?
>

No, that's why gdk-pixbuf and imlib exist. ;-) For GTK 2, gdk-pixbuf
is merged into GTK itself, so using gdk-pixbuf shouldn't long term
make any difference in your code size.

If you want to avoid it though, just use libjpeg and copy the code
from gdk-pixbuf that uses libjpeg to read an RGB buffer and then use
gdkrgb to render it.

Havoc




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]