org.gnu.gtk
public class Image extends Misc
If the file isn't loaded successfully, the image will contain a "broken image" icon similar to that used in many web browsers.
Constructor Summary | |
---|---|
Image(String filename)
Construct a new image passing the filename of an image.
| |
Image(Image image, Bitmap mask)
Create an Image widget displaying a image and a mask. | |
Image(Pixbuf pixbuf)
Creates an Image from a {@link org.gnu.gdk.Pixbuf}.
| |
Image(Pixmap pixmap, Bitmap mask)
Create an Image from a {@link org.gnu.gdk.Pixmap}.
| |
Image(PixbufAnimation animation)
Creates an Image displaying the given PixbufAnimation.
| |
Image(String iconName, IconSize size)
Create an Image | |
Image(Handle handle)
Construct an Image from a handle to a native resource. | |
Image(IconSet iconSet, IconSize size)
Creates an Image displaying an IconSet.
| |
Image(GtkStockItem stockId, IconSize size)
Create an Image displaying a Stock icon.
| |
Image()
Constructs a new Image. |
Method Summary | |
---|---|
String | getIconName() |
static Image | getImage(Handle handle)
Construct an Image from a handle to a native resource. |
Image | getImage()
Gets the {@link org.gnu.gdk.Image} being displayed by this. |
Bitmap | getImageMask()
Gets the {@link Bitmap} being used as a map by the Image The storage type
of the image must be GTK_IMAGE_EMPTY or GTK_IMAGE_IMAGE.
|
Pixbuf | getPixbuf()
Gets the {@link Pixbuf} being displayed by the Image. |
int | getPixelSize() |
ImageType | getStorageType()
Gets the type of representation being used by the Image to store image
data. |
static Type | getType()
Retrieve the runtime type used by the GLib library. |
void | set(Pixmap pixmap, Bitmap mask)
Sets the image to the given {@link org.gnu.gdk.Pixmap}.
|
void | set(Image image, Bitmap mask)
Sets the image widget to displaying a image and a mask. |
void | set(Pixbuf pixbuf)
Sets the Image from a {@link org.gnu.gdk.Pixbuf}.
|
void | set(PixbufAnimation animation)
Sets to image to the given PixbufAnimation.
|
void | set(String iconName, IconSize size) |
void | set(IconSet iconSet, IconSize size)
Sets the image to displayian IconSet.
|
void | set(GtkStockItem stockId, IconSize size)
Set the image to a Stock icon.
|
void | set(String filename)
Sets the image from a file
|
void | setPixelSize(int pixelSize) |
Parameters: filename The filename for the image to load.
Parameters: image The org.gnu.gdk.Image to use for this object creation. mask The org.gnu.gdk.Mask to apply to the image.
Parameters: pixbuf The Pixbuf to use for the Image creation.
Parameters: pixmap The Pixmap to use for the Image creation. mask The mask to apply to the created Image.
Parameters: animation The PixbufAnimation to use for this object creation.
Parameters: iconSet The IconSet to use for the Image. size The IconSize to use for the Image.
Parameters: stockId The id of the Stock icon to display. size The size of the icon.
Returns: The image being displayed by the image
See Also: getStorageType
Returns: The map being used by the image
See Also: getStorageType
Returns: The pixbuf being used by the image.
See Also: getStorageType
Parameters: pixmap The Pixmap to use for the Image. mask The mask to apply to the Image.
Parameters: image The org.gnu.gdk.Image to use for this object. mask The org.gnu.gdk.Mask to apply to the image.
Parameters: pixbuf The Pixbuf to use for the Image.
Parameters: animation The PixbufAnimation to use for this object.
Parameters: iconSet The IconSet to use for the Image. size The IconSize to use for the Image.
Parameters: stockId The id of the Stock icon to display. size The size of the icon.
Parameters: filename The filename for the image to load.