Re: image display



On Thu, Apr 17, 2003 at 03:08:34AM +0100, Ian Molton wrote:
If I have a 160x120 *raw* image in memory in RGB (24 bit) format, what
is the easiest way to display it in a semi-timely manner?

(raw meaning the image is literally, red byte, green byte, blue byte,
for each pixel, total 57600 bytes.)

gdk_pixbuf_new_from_data(), coupled with a GtkImage and
gtk_image_set_from_pixbuf().

-- 
      Evan Martin
martine cs washington edu
  http://neugierig.org



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