org.gnu.gdk
public class Pixmap extends Drawable
Deprecated: This class is part of the java-gnome 2.x family of libraries,
which, due to their inefficiency and complexity, are no longer
being maintained and have been abandoned by the java-gnome
project. This class may exist in java-gnome 4.0; look out for
org.gnome.gdk.Pixmap
.
Constructor Summary | |
---|---|
Pixmap(Drawable drawable, int width, int height, int depth)
Create a new pixmap with a given size and depth.
| |
Pixmap(Drawable drawable, byte[] data, int width, int height, int depth, Color fg, Color bg)
Create a two-color pixmap from data in XBM data.
| |
Pixmap(Drawable drawable, Bitmap mask, Color transparent, String filename)
Create a pixmap from a XPM file.
| |
Pixmap(Drawable drawable, Colormap colormap, Bitmap mask, Color transparent, String filename)
Create a pixmap from a XPM file using a particular colormap.
| |
Pixmap(Drawable drawable, Bitmap mask, Color transparent, byte[] data)
Create a pixmap from data in XPM format.
| |
Pixmap(Drawable drawable, Colormap colormap, Bitmap mask, Color transparent, byte[] data)
Create a pixmap from data in XPM format using a particular colormap.
|
Method Summary | |
---|---|
static Type | getType()
Retrieve the runtime type used by the GLib library. |
Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
Create a new pixmap with a given size and depth.Parameters: drawable
A Drawable, used to determine default values for the new
pixmap. Can be null
if depth is specified. width
The width of the new pixmap in pixels. height
The height of the new pixmap in pixels. depth
The depth (number of bits per pixel) of the new pixmap. If
-1
, and drawable is not null
,
the depth of the new pixmap will be equal to that of drawable.
Throws: IllegalArgumentException If drawable is null and depth is -1
Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
Create a two-color pixmap from data in XBM data.Parameters: drawable
a Drawable, used to determine default values for the new
pixmap. Can be null
, in which case the root
window is used. data
the pixmap data. width
the width of the new pixmap in pixels. height
the height of the new pixmap in pixels. depth
the depth (number of bits per pixel) of the new pixmap. fg
the foreground color. bg
the background color.
Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
Create a pixmap from a XPM file.Parameters: drawable
a Drawable, used to determine default values for the new
pixmap. mask
object where to store a bitmap representing the transparency
mask of the XPM file. Can be null
, in which
case transparency will be ignored. transparent
the color to be used for the pixels that are transparent in
the input file. Can be null
, in which case a
default color will be used. filename
the filename of a file containing XPM data.
Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
Create a pixmap from a XPM file using a particular colormap.Parameters: drawable
a Drawable, used to determine default values for the new
pixmap. Can be null
if colormap is given. colormap
the GdkColormap that the new pixmap will be use. If omitted,
the colormap for window will be used. mask
object where to store a bitmap representing the transparency
mask of the XPM file. Can be null
, in which
case transparency will be ignored. transparent
the color to be used for the pixels that are transparent in
the input file. Can be null
, in which case a
default color will be used. filename
the filename of a file containing XPM data.
Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
Create a pixmap from data in XPM format.Parameters: drawable
a Drawable, used to determine default values for the new
pixmap. mask
object where to store a bitmap representing the transparency
mask of the XPM file. Can be null
, in which
case transparency will be ignored. transparent
the color to be used for the pixels that are transparent in
the input file. Can be null
, in which case a
default color will be used. data
array containing the the XPM data.
Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
Create a pixmap from data in XPM format using a particular colormap.Parameters: drawable
a Drawable, used to determine default values for the new
pixmap. Can be null
if colormap is given. colormap
the GdkColormap that the new pixmap will be use. If omitted,
the colormap for window will be used. mask
object where to store a bitmap representing the transparency
mask of the XPM file. Can be null
, in which
case transparency will be ignored. transparent
the color to be used for the pixels that are transparent in
the input file. Can be null
, in which case a
default color will be used. data
array containing the the XPM data.
Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
Retrieve the runtime type used by the GLib library.