See also: Main Index; Alphabetic; Misc; By Author; By Module; By Menu    External Links: The Gimp; Gimp User Manual

The Gimp channel functions

gimp_channel_copy Copy a channel.
gimp_channel_delete Delete a channel.
gimp_channel_get_color Get the compositing color of the specified channel.
gimp_channel_get_name Get the name of the specified channel.
gimp_channel_get_opacity Get the opacity of the specified channel.
gimp_channel_get_show_masked Get the composite method of the specified channel.
gimp_channel_get_tattoo Get the tattoo of the specified channel.
gimp_channel_get_visible Get the visibility of the specified channel.
gimp_channel_new Create a new channel.
gimp_channel_ops_duplicate Duplicate the specified image
gimp_channel_ops_offset Offset the drawable by the specified amounts in the X and Y directions
gimp_channel_set_color Set the compositing color of the specified channel.
gimp_channel_set_name Set the name of the specified channel.
gimp_channel_set_opacity Set the opacity of the specified channel.
gimp_channel_set_show_masked Set the composite method of the specified channel.
gimp_channel_set_tattoo Set the tattoo of the specified channel.
gimp_channel_set_visible Set the visibility of the specified channel.
gimp_drawable_is_channel Returns whether the drawable is a channel.
gimp_image_add_channel Add the specified channel to the image.
gimp_image_get_active_channel Returns the specified image's active channel.
gimp_image_get_channel_by_tattoo Find a channel with a given tattoo in an image.
gimp_image_get_channels Returns the list of channels contained in the specified image.
gimp_image_lower_channel Lower the specified layer in the image's layer stack
gimp_image_raise_channel Raise the specified channel in the image's channel stack
gimp_image_remove_channel Remove the specified channel from the image.
gimp_image_set_active_channel Sets the specified image's active channel.
gimp_image_unset_active_channel Unsets the active channel in the specified image.

gimp_channel_copy

Input:
CHANNELchannelThe channel to copy
Returns:
CHANNELchannel_copyThe newly copied channel
This procedure copies the specified channel and returns the copy.
Spencer Kimball & Peter Mattis; 1995-1996

gimp_channel_delete

Input:
CHANNELchannelThe channel to delete
Returns: nothing
This procedure deletes the specified channel. This must not be done if the gimage containing this channel was already deleted or if the channel was already removed from the image. The only case in which this procedure is useful is if you want to get rid of a channel which has not yet been added to an image.
Spencer Kimball & Peter Mattis; 1995-1996

gimp_channel_get_color

Input:
CHANNELchannelThe channel
Returns:
COLORcolorThe channel compositing color
This procedure returns the specified channel's compositing color.
Spencer Kimball & Peter Mattis; 1995-1996

gimp_channel_get_name

Input:
CHANNELchannelThe channel
Returns:
STRINGnameThe channel name
This procedure returns the specified channel's name.
Spencer Kimball & Peter Mattis; 1995-1996

gimp_channel_get_opacity

Input:
CHANNELchannelThe channel
Returns:
FLOATopacityThe channel opacity
This procedure returns the specified channel's opacity.
Spencer Kimball & Peter Mattis; 1995-1996

gimp_channel_get_tattoo

Input:
CHANNELchannelThe channel
Returns:
INT32tattooThe channel tattoo
This procedure returns the specified channel's tattoo. A tattoo is a unique and permanent identifier attached to a channel that can be used to uniquely identify a channel within an image even between sessions.
Jay Cox; 1998

gimp_channel_get_visible

Input:
CHANNELchannelThe channel
Returns:
INT32visibleThe channel visibility
This procedure returns the specified channel's visibility.
Spencer Kimball & Peter Mattis; 1995-1996

gimp_channel_new

Input:
IMAGEimageThe image to which to add the channel
INT32widthThe channel width: (0 < width)
INT32heightThe channel height: (0 < height)
STRINGnameThe channel name
FLOATopacityThe channel opacity: (0 <= opacity <= 100)
COLORcolorThe channel compositing color
Returns:
CHANNELchannelThe newly created channel
This procedure creates a new channel with the specified width and height. Name, opacity, and color are also supplied parameters. The new channel still needs to be added to the image, as this is not automatic. Add the new channel with the 'gimp_image_add_channel' command. Other attributes such as channel show masked, should be set with explicit procedure calls. The channel's contents are undefined initially.
Spencer Kimball & Peter Mattis; 1995-1996

gimp_channel_ops_duplicate

Input:
IMAGEimageThe image
Returns:
IMAGEnew_imageThe new, duplicated image
This procedure duplicates the specified image, copying all layers, channels, and image information.
Spencer Kimball & Peter Mattis; 1997

gimp_channel_ops_offset

Input:
DRAWABLEdrawableThe drawable to offset
INT32wrap_aroundwrap image around or fill vacated regions
INT32fill_typefill vacated regions of drawable with background or transparent: OFFSET_BACKGROUND (0) or OFFSET_TRANSPARENT (1)
INT32offset_xoffset by this amount in X direction
INT32offset_yoffset by this amount in Y direction
Returns: nothing
This procedure offsets the specified drawable by the amounts specified by 'offset_x' and 'offset_y'. If 'wrap_around' is set to TRUE, then portions of the drawable which are offset out of bounds are wrapped around. Alternatively, the undefined regions of the drawable can be filled with transparency or the background color, as specified by the 'fill_type' parameter.
Spencer Kimball & Peter Mattis; 1997

gimp_channel_set_color

Input:
CHANNELchannelThe channel
COLORcolorThe new channel compositing color
Returns: nothing
This procedure sets the specified channel's compositing color.
Spencer Kimball & Peter Mattis; 1995-1996

gimp_channel_set_name

Input:
CHANNELchannelThe channel
STRINGnameThe new channel name
Returns: nothing
This procedure sets the specified channel's name.
Spencer Kimball & Peter Mattis; 1995-1996

gimp_channel_set_opacity

Input:
CHANNELchannelThe channel
FLOATopacityThe new channel opacity (0 <= opacity <= 100)
Returns: nothing
This procedure sets the specified channel's opacity.
Spencer Kimball & Peter Mattis; 1995-1996

gimp_channel_set_tattoo

Input:
CHANNELchannelThe channel
INT32tattooThe new channel tattoo
Returns: nothing
This procedure sets the specified channel's tattoo. A tattoo is a unique and permanent identifier attached to a channel that can be used to uniquely identify a channel within an image even between sessions.
Jay Cox; 1998

gimp_channel_set_visible

Input:
CHANNELchannelThe channel
INT32visibleThe new channel visibility
Returns: nothing
This procedure sets the specified channel's visibility.
Spencer Kimball & Peter Mattis; 1995-1996

gimp_image_add_channel

Input:
IMAGEimageThe image
CHANNELchannelThe channel
INT32positionThe channel position
Returns: nothing
This procedure adds the specified channel to the image. The position channel is not currently used, so the channel is always inserted at the top of the channel stack.
Spencer Kimball & Peter Mattis; 1995-1996

gimp_image_get_active_channel

Input:
IMAGEimageThe image
Returns:
CHANNELactive_channelThe active channel
If there is an active channel, this will return the channel ID, otherwise, -1.
Spencer Kimball & Peter Mattis; 1995-1996

gimp_image_get_channel_by_tattoo

Input:
IMAGEimageThe image
INT32tattooThe tattoo of the channel to find
Returns:
CHANNELchannelThe channel with the specified tattoo
This procedure returns the channel with the given tattoo in the specified image.
Jay Cox; 1998

gimp_image_get_channels

Input:
IMAGEimageThe image
Returns:
INT32num_channelsThe number of channels contained in the image
INT32ARRAYchannel_idsThe list of channels contained in the image
This procedure returns the list of channels contained in the specified image. This does not include the selection mask, or layer masks. The order is from topmost to bottommost.
Spencer Kimball & Peter Mattis; 1995-1996

gimp_image_lower_channel

Input:
IMAGEimageThe image
LAYERlayerThe layer to lower
Returns: nothing
This procedure lowers the specified layer one step in the existing layer stack. It will not move the layer if there is no layer below it, or the layer has no alpha channel.
Spencer Kimball & Peter Mattis; 1995-1996

gimp_image_raise_channel

Input:
IMAGEimageThe image
CHANNELchannelThe channel to raise
Returns: nothing
This procedure raises the specified channel one step in the existing channel stack. It will not move the channel if there is no channel above it.
Spencer Kimball & Peter Mattis; 1995-1996

gimp_image_remove_channel

Input:
IMAGEimageThe image
CHANNELchannelThe channel
Returns: nothing
This procedure removes the specified channel from the image. If the channel doesn't exist, an error is returned.
Spencer Kimball & Peter Mattis; 1995-1996

gimp_image_set_active_channel

Input:
IMAGEimageThe image
CHANNELactive_channelThe new image active channel
Returns: nothing
If the channel exists, it is set as the active channel in the image. Any previous active channel or channel is set to inactive. An exception is a previously existing floating selection, in which case this procedure will return an execution error.
Spencer Kimball & Peter Mattis; 1995-1996

gimp_image_unset_active_channel

Input:
IMAGEimageThe image
Returns: nothing
If an active channel exists, it is unset. There then exists no active channel, and if desired, one can be set through a call to 'Set Active Channel'. No error is returned in the case of no existing active channel.
Spencer Kimball & Peter Mattis; 1995-1996


The Gimp 1.2.5 (win32)Documentation fresh from PDB12:10:12 Do 19.06.03
Generated by pdb2doc.py written by Hans Breuer <Hans(at)Breuer.org>