Re: Display TIFF Image

On 2006-07-13 (Thu), at 08:35:59 Hracek, Petr wrote:

> Problem is that I make some operation with images
> e.g. Edge detection, transfer from Color2BW, trimming image etc. and
> image is saved in the memory
> as a field int * data;
So you will have to read what is this format about and covert it to something
acceptable in pixbuf/pixmap. Method create_from_data() from Gdk::Pixbuf takes
guint8* data as argument, so this one will be probably the easiest way.

Another easy way would be save image to some temporary file using libtiff,
and then open it with Gtk::Image.

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