Re: gtk/gdk equivalent of XPutImage ()



On 11/24/06, Prasanna Kumar K <prasanna tataelxsi co in> wrote:

Hi,

I want to substitute XPutImage() with some equivalent gtk/gdk API in my
application.
It is not neccessary that gtk/gdk should have an exact match for
XPutImage().
Any 2 or more combinations of gtk/gdk API's can solve the problem..

Hello

XImage === GdkImage [1], but try to look at GdkRGB [2] and GdkPixbuf
first [3]. They all support direct access to image data and output to
drawables. GdkPixbuf supports many usefull things, like scaling and
file operations.

[1]
http://developer.gnome.org/doc/API/2.0/gdk/gdk-Images.html
http://developer.gnome.org/doc/API/2.0/gdk/gdk-Drawing-Primitives.html#gdk-draw-image

[2]
http://developer.gnome.org/doc/API/2.0/gdk/gdk-GdkRGB.html

[3]
http://developer.gnome.org/doc/API/2.0/gdk-pixbuf/index.html
http://developer.gnome.org/doc/API/2.0/gdk-pixbuf/gdk-pixbuf-creating.html
http://developer.gnome.org/doc/API/2.0/gdk/gdk-Pixbufs.html

  Olexiy



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