1
/* LIBGIMP - The GIMP Library
2
* Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
6
* This library is free software; you can redistribute it and/or
7
* modify it under the terms of the GNU Lesser General Public
8
* License as published by the Free Software Foundation; either
9
* version 2 of the License, or (at your option) any later version.
11
* This library is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
* Library General Public License for more details.
16
* You should have received a copy of the GNU Lesser General Public
17
* License along with this library; if not, write to the
18
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19
* Boston, MA 02111-1307, USA.
29
* @image_ID: The image to which to add the channel.
30
* @name: The channel name.
31
* @width: The channel width.
32
* @height: The channel height.
33
* @opacity: The channel opacity.
34
* @color: The channel compositing color.
36
* Create a new channel.
38
* This procedure creates a new channel with the specified width and
39
* height. Name, opacity, and color are also supplied parameters. The
40
* new channel still needs to be added to the image, as this is not
41
* automatic. Add the new channel with the 'gimp_image_add_channel'
42
* command. Other attributes such as channel show masked, should be set
43
* with explicit procedure calls. The channel's contents are undefined
46
* Returns: The newly created channel.
49
gimp_channel_new (gint32 image_ID,
56
return _gimp_channel_new (image_ID,