java-gnome version 4.0.19

org.gnome.gdk
Class Pixmap

Object
  extended by org.freedesktop.bindings.Pointer
      extended by org.freedesktop.bindings.Proxy
          extended by org.gnome.glib.Object
              extended by org.gnome.gdk.Drawable
                  extended by org.gnome.gdk.Pixmap

public class Pixmap
extends Drawable

An image as stored in the X server's memory.

This class is easily confused with Pixbuf, which is what you are probably looking for. Pixbuf is used for representing images on the client side in your application. Loading images and passing them for use in Widgets such as Image and MenuItem is done there. Pixmap, on the other hand, is a wrapper around a resource in the X server.

You should not generally need to use this class. When we do draw Widgets with Cairo, we do so directly to a Window in the X server which it then manages for getting on screen. If you really are looking to work directly with a Pixmap, then see also XlibSurface, which ultimately is how we get data into Drawables, though there too we don't work with them directly but rather let Cairo and GDK do the heavy lifting.

Since:
4.0.7
Author:
Andrew Cowie

Constructor Summary
Pixmap(Drawable example, int width, int height)
          Create a Pixmap with qualities matching that of an existing Drawable.
Pixmap(int width, int height, int depth)
          Create a new Pixmap with a given pixel depth.
 
Method Summary
 
Methods inherited from class org.gnome.gdk.Drawable
getDepth, getHeight, getWidth
 
Methods inherited from class org.freedesktop.bindings.Pointer
toString
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Pixmap

public Pixmap(Drawable example,
              int width,
              int height)
Create a Pixmap with qualities matching that of an existing Drawable. In other words, if you already have a GDK Window (ie, you're in a Widget.ExposeEvent), you can create a Pixmap that will be compatible with it by using this constructor.

Since:
4.0.7

Pixmap

public Pixmap(int width,
              int height,
              int depth)
Create a new Pixmap with a given pixel depth.

Since:
4.0.7


java-gnome