org.gnu.gdk
Class Pixbuf

java.lang.Object
  |
  +--org.gnu.glib.GObject
        |
        +--org.gnu.gdk.Pixbuf

public class Pixbuf
extends GObject


Constructor Summary
Pixbuf(int handle)
          Constructs a Pixbuf from a handle to native resources.
Pixbuf(java.lang.String filename)
          Construct a new Pixbuf from an image file.
 
Method Summary
 int height()
          Return the height of the pixbuf.
 Pixbuf scale(int width, int height, InterpType itype)
          Create a new pixbuf from an existing pixbuf scaled to the size provided.
 int width()
          Return the width of the pixbuf.
 
Methods inherited from class org.gnu.glib.GObject
addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, equals, getData, getHandle, removeEventHandler, setData
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Pixbuf

public Pixbuf(int handle)
Constructs a Pixbuf from a handle to native resources. This should only be used internally by java-gnome.


Pixbuf

public Pixbuf(java.lang.String filename)
Construct a new Pixbuf from an image file.

Parameters:
filename - The name of the image file.
Method Detail

width

public int width()
Return the width of the pixbuf.

Returns:
The width

height

public int height()
Return the height of the pixbuf.

Returns:
The height

scale

public Pixbuf scale(int width,
                    int height,
                    InterpType itype)
Create a new pixbuf from an existing pixbuf scaled to the size provided.


Please send any bug reports, comments, or suggestions for the API or documentation to java-gnome-developer@lists.sf.net