gnu.x11.image
Class ZPixmap

java.lang.Object
  extended by gnu.x11.image.Image
      extended by gnu.x11.image.ZPixmap
Direct Known Subclasses:
PPM, XPM

public class ZPixmap
extends Image


Field Summary
static int FORMAT
           
 int image_byte_order
           
 int pixel_byte_count
           
 
Fields inherited from class gnu.x11.image.Image
data, format, height, LEAST_SIGNIFICANT, left_pad, line_byte_count, LSB_FIRST, MOST_SIGNIFICANT, MSB_FIRST, pixmap_format, width
 
Constructor Summary
ZPixmap(Display display)
           
ZPixmap(Display display, int width, int height, Pixmap.Format format)
           
 
Method Summary
 void set_blue(int x, int y, int b)
           
 void set_data(int[] image_data)
          Puts the image data into this image.
 void set_green(int x, int y, int g)
           
 void set_red(int x, int y, int r)
           
 void set(int x, int y, Color color)
           
 void set(int x, int y, int pixel)
           
 void set(int x, int y, int r, int g, int b)
           
 
Methods inherited from class gnu.x11.image.Image
init
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FORMAT

public static final int FORMAT
See Also:
Constant Field Values

image_byte_order

public int image_byte_order

pixel_byte_count

public int pixel_byte_count
Constructor Detail

ZPixmap

public ZPixmap(Display display)

ZPixmap

public ZPixmap(Display display,
               int width,
               int height,
               Pixmap.Format format)
Method Detail

set

public void set(int x,
                int y,
                Color color)

set

public void set(int x,
                int y,
                int pixel)

set_red

public void set_red(int x,
                    int y,
                    int r)

set_green

public void set_green(int x,
                      int y,
                      int g)

set_blue

public void set_blue(int x,
                     int y,
                     int b)

set

public void set(int x,
                int y,
                int r,
                int g,
                int b)

set_data

public void set_data(int[] image_data)
Puts the image data into this image. This data must be in the same format as specified in this image.

Parameters:
image_data - the data to set