O'Reilly logo

Programming Web Graphics with Perl and GNU Softwar by Shawn Wallace

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Image Information and Management

Table C-8. Procedures for Getting Information About an Image, Creating and Deleting Images, and Managing Drawables

Name

Description

Arguments

gimp_display_delete

Delete the specified display

display (Display)

The display

gimp_display_new

Creates a new display for the specified image

image (Image)

The image

Returns:

display (Display)

The new display

gimp_displays_flush

Flush all internal changes to the user interface

 

gimp_drawable_bytes

Returns the bytes per pixel

drawable (Drawable)

The drawable

Returns:

bytes (Integer)

Bytes per pixel

gimp_drawable_channel

Returns whether the drawable is a channel

drawable (Drawable)

The drawable

Returns:

channel (Integer)

Non-zero if the drawable is a channel

gimp_drawable_color

Returns whether the drawable is an RGB based type

drawable (Drawable)

The drawable

Returns:

color (Integer)

Non-zero if the drawable is an RGB type

gimp_drawable_fill

Fill the drawable with the specified fill mode

drawable (Drawable)

The drawable

fill_type (Integer)

Type of fill (BG_IMAGE_FILL, WHITE_IMAGE_FILL, TRANS_IMAGE_FILL)

gimp_drawable_get_pixel

Gets the value of the pixel at the specified coordinates

drawable (Drawable)

The drawable

x coordinate (Integer)

The x coordinate

y coordinate (Integer)

The y coordinate

Returns:

num_channels (Integer)

The number of channels for the pixel

pixel (IntArray)

The pixel value

gimp_drawable_gray

Returns whether the drawable is an grayscale type

drawable (

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required