Image
Object Hierarchy:
Description:
[
Deprecated ( since =
"2.22" ) ]
public class Image :
Object
Warning: Image is deprecated.
Namespace: Gdk
Package: gdk-2.0
Content:
Creation methods:
Methods:
-
public uint16 get_bits_per_pixel ()
Determines the number of bits per pixel of the image.
-
public ByteOrder get_byte_order ()
Determines the byte order of the image.
-
public uint16 get_bytes_per_line ()
Determines the number of bytes per line of the image.
-
public uint16 get_bytes_per_pixel ()
Determines the number of bytes per pixel of the image.
-
public weak Colormap get_colormap ()
Retrieves the colormap for a given image, if it exists. An image will have a colormap if the drawable
from which it was created has a colormap, or if a colormap was set explicitely with
set_colormap.
-
public uint16 get_depth ()
Determines the depth of the image.
-
public int get_height ()
Determines the height of the image.
-
public ImageType get_image_type ()
Determines the type of a given image.
-
public uint32 get_pixel (int x, int y)
-
public weak Visual get_visual ()
Determines the visual that was used to create the image.
-
public int get_width ()
Determines the width of the image.
-
public void put_pixel (int x, int y, uint32 pixel)
-
public void set_colormap (Colormap colormap)
Sets the colormap for the image to the given colormap. Normally there's no need to use this function,
images are created with the correct colormap if you get the image from a drawable. If you create the image from scratch, use the
colormap of the drawable you intend to render the image to.
Fields: