Re: Image manipulation and Scaling



Even if your image has more than eight bits you can always convert it to
8-bit according to a user setting defining the grey level max and min to be
used for the convertion (known as window and level in the medical image
community). That's exactly how I do it in my image viewer giv. The image is
held in a GivImage that is overloaded for various bit integer or floating
widths and is then converted according to the user level setting before
being displayed.

Btw, if you would like to have interactive zooming of the image being
displayed you may want to consider using my GtkImageViewer instead of
GtkImage. (There is also the GtkImageView by Björn Lindquist with similar
and different functionality.)

See: http://giv.sourceforge.net/gtk-image-viewer/

Regards,
Dov

On Wed, Feb 3, 2010 at 04:19, Lars Wirzenius <liw liw fi> wrote:

On Tue, 2010-02-02 at 17:25 +0530, Gorav wrote:
Hi


I need to do some image manipulation using GTK, and I want to view some
proprietary image formats. So, I can prepare RGB data. But, which widget
and API to be use to draw pixels on screen.


I used GtkImage using Pixbuf, but it supports only 8 bits per sample.

Have you looked at GdkPixbuf for holding the image data? You may need to
write converter plugins to load and store images from files for your
proprietary formats, but after that, all the in-memory stuff should work
fine.


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




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