Reading jpg data

View: New views
2 Messages — Rating Filter:   Alert me  

Reading jpg data

by fzamperini@tiscali.it :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi everybody,
    I need to read a jpg image out of a buffer, not a file; the
caveman way to do this could be: write buffer to file, then use
gdk_pixbuf_new_from_file. Is there a more elegant way to do this? I
tried with pixbuf_loaders (with no success), but before spending
further effort I'd like to have some hints from the list. BTW I'm
developing on win32.
Thansk, cheers

Federico






_______________________________________________
Tiscali.Fax: ricevi gratis sulla tua email e invii
a 12 cent per pagina senza scatto alla risposta
http://vas.tiscali.it/fax//

_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@...
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Reading jpg data

by jcupitt :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

2008/6/16 fzamperini@... <fzamperini@...>:
>    I need to read a jpg image out of a buffer, not a file; the
> caveman way to do this could be: write buffer to file, then use
> gdk_pixbuf_new_from_file. Is there a more elegant way to do this? I

You make an image and use gdkpixbufloader to write data to it

  http://library.gnome.org/devel/gdk-pixbuf/stable/GdkPixbufLoader.html

John
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@...
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
LightInTheBox - Buy quality products at wholesale price