~ubuntu-branches/ubuntu/maverick/gimp/maverick-updates

« back to all changes in this revision

Viewing changes to libgimp/gimpchannel.c

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2005-12-09 19:44:52 UTC
  • Revision ID: james.westby@ubuntu.com-20051209194452-yggpemjlofpjqyf4
Tags: upstream-2.2.9
ImportĀ upstreamĀ versionĀ 2.2.9

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* LIBGIMP - The GIMP Library
 
2
 * Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
 
3
 *
 
4
 * gimpchannel.c
 
5
 *
 
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.
 
10
 *
 
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.
 
15
 *
 
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.
 
20
 */
 
21
 
 
22
#include "config.h"
 
23
 
 
24
#include "gimp.h"
 
25
 
 
26
 
 
27
/**
 
28
 * gimp_channel_new:
 
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.
 
35
 *
 
36
 * Create a new channel.
 
37
 *
 
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
 
44
 * initially.
 
45
 *
 
46
 * Returns: The newly created channel.
 
47
 */
 
48
gint32
 
49
gimp_channel_new (gint32         image_ID,
 
50
                  const gchar   *name,
 
51
                  guint          width,
 
52
                  guint          height,
 
53
                  gdouble        opacity,
 
54
                  const GimpRGB *color)
 
55
{
 
56
  return _gimp_channel_new (image_ID,
 
57
                            width,
 
58
                            height,
 
59
                            name,
 
60
                            opacity,
 
61
                            color);
 
62
}