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

Layers and Channels

Table C-6. Creating, Manipulating, and Managing Layers and Channels

Name

Description

Arguments

gimp_channel_copy

Copy a channel

channel (Channel)

The channel to copy

Returns:

Channel_copy (Channel)

The newly copied channel

gimp_channel_delete

Delete a channel

channel (Channel)

The channel to delete

gimp_channel_get_color

Get the compositing color of the specified channel

channel (Channel)

The channel

Returns:

color (Color)

The channel’s composite color

gimp_channel_get_name

Get the name of the specified channel

channel (Channel)

The channel

Returns:

name (String)

The channel name

gimp_channel_get_opacity

Get the opacity of the specified channel

channel (Channel)

The channel

Returns:

opacity (Float)

The channel opacity

gimp_channel_get_show_masked

Get the composite type for the channel

channel (Channel)

The channel

Returns:

show_masked (Integer)

composite method for channel

gimp_channel_get_visible

Get the visibility of the specified channel

channel (Channel)

The channel

Returns:

visible (Integer)

The channel visibility

gimp_channel_new

Create a new channel

image (Image)

The image to which to add the channel

width (Integer)

The channel width (must be > 0)

height (Integer)

The channel height (must be > 0)

name (String)

The channel name

opacity (Float)

The channel opacity in the range 0 to 100

color (Color)

The channel compositing color

Returns:

channel (Channel)

The newly created channel

gimp_channel_ops_duplicate

Duplicate ...

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