Re: 16 bits grayscale images

2007-09-27 Thread Marco Brambilla
; I take a look at the pixbuf class, but it seems to use a RGB structure. > How can I do my job ? > > Thanks in advance. > > ___ > gtk-app-devel-list mailing list > gtk-app-devel-list@gnome.org > http://mail.gnome.org/mailman/listi

Re: Display grayscale image

2007-09-03 Thread Marco Brambilla
Thank you very much for your advises, guys! I'm going to try immediately. Bramb -- Marco Brambilla Politecnico di Milano - Dipartimento di Fisica Piazza L. Da Vinci, 32 - 20133, Milano - Italy Tel: 02 2399 6058 Fax: 02 2399 6126 e-mail: [EMAIL PROT

Display grayscale image

2007-08-30 Thread Marco Brambilla
understand) gtk_pixbuf_new_from_data needs the three RGB channels. Is there a easy way of displaying such an image "as is" (single channel) ? Or must I convert it each pixel to the a RGB triplet needed by gtk_pixbuf_new_from_data ? Any advice is very welcome. Thanks in advance to everybod