Re: Displaying jpg and gif graphics

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

 



> Can anyone point me in the direction where I can find out how to display
> graphic in a window. I'm actually using PHP-GTK with GDK compiled in. I
> noticed that the GTK Graphic is not supported by the php-gtk, only the
> GdkPixelMap functions.

For PHP-GTK questions you should post on <php-gtk-general@xxxxxxxxxxxxx> 
rather than <gtk-list@xxxxxxxxx>

If you have compile PHP-GTK with --enable-gdkpixbuf
you can use the gdkPixbuf widget
(but notice that this one is not available if you are a windows user)

Have a look at this sample:
http://grincheux.codelutin.org/~monnier/pim/g/sample/

You can switch on the pixbuf or the pixmap functions,
yo use a pixbuf or a pixmap rendering:

function render_drawable($area) {
    //render_pixbuf($area);
    render_pixmap($area);
}
function handle2drawable() {
    //handle2pixbuf();
    handle2pixmap();
}

Cheers


_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux