/* GIMP - The GNU Image Manipulation Program
* Copyright (C) 1995-2003 Spencer Kimball and Peter Mattis
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
/* NOTE: This file is auto-generated by pdbgen.pl. */
#include "config.h"
#include "stamp-pdbgen.h"
#include <cairo.h>
#include <gegl.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
#include "libgimpbase/gimpbase.h"
#include "libgimpcolor/gimpcolor.h"
#include "libgimpbase/gimpbase.h"
#include "pdb-types.h"
#include "core/gimpchannel-combine.h"
#include "core/gimpchannel.h"
#include "core/gimpimage.h"
#include "core/gimpparamspecs.h"
#include "gimppdb.h"
#include "gimpprocedure.h"
#include "internal-procs.h"
#include "gimp-intl.h"
static GimpValueArray *
channel_new_invoker (GimpProcedure *procedure,
Gimp *gimp,
GimpContext *context,
GimpProgress *progress,
const GimpValueArray *args,
GError **error)
{
gboolean success =
TRUE;
GimpValueArray *return_vals;
GimpImage *image;
const gchar *name;
gint width;
gint height;
gdouble opacity;
GeglColor *color;
GimpChannel *channel = NULL;
image = g_value_get_object (gimp_value_array_index (args,
0));
name = g_value_get_string (gimp_value_array_index (args,
1));
width = g_value_get_int (gimp_value_array_index (args,
2));
height = g_value_get_int (gimp_value_array_index (args,
3));
opacity = g_value_get_double (gimp_value_array_index (args,
4));
color = g_value_get_object (gimp_value_array_index (args,
5));
if (success)
{
gimp_color_set_alpha (color, opacity /
100.
0);
channel = gimp_channel_new (image, width, height, name, color);
if (! channel)
success =
FALSE;
}
return_vals = gimp_procedure_get_return_values (procedure, success,
error ? *error : NULL);
if (success)
g_value_set_object (gimp_value_array_index (return_vals,
1), channel);
return return_vals;
}
static GimpValueArray *
channel_new_from_component_invoker (GimpProcedure *procedure,
Gimp *gimp,
GimpContext *context,
GimpProgress *progress,
const GimpValueArray *args,
GError **error)
{
gboolean success =
TRUE;
GimpValueArray *return_vals;
GimpImage *image;
gint component;
const gchar *name;
GimpChannel *channel = NULL;
image = g_value_get_object (gimp_value_array_index (args,
0));
component = g_value_get_enum (gimp_value_array_index (args,
1));
name = g_value_get_string (gimp_value_array_index (args,
2));
if (success)
{
if (gimp_image_get_component_format (image, component) != NULL)
channel = gimp_channel_new_from_component (image,
component, name, NULL);
if (channel)
gimp_item_set_visible (GIMP_ITEM (channel),
FALSE,
FALSE);
else
success =
FALSE;
}
return_vals = gimp_procedure_get_return_values (procedure, success,
error ? *error : NULL);
if (success)
g_value_set_object (gimp_value_array_index (return_vals,
1), channel);
return return_vals;
}
static GimpValueArray *
channel_copy_invoker (GimpProcedure *procedure,
Gimp *gimp,
GimpContext *context,
GimpProgress *progress,
const GimpValueArray *args,
GError **error)
{
gboolean success =
TRUE;
GimpValueArray *return_vals;
GimpChannel *channel;
GimpChannel *channel_copy = NULL;
channel = g_value_get_object (gimp_value_array_index (args,
0));
if (success)
{
GimpImage *image = gimp_item_get_image (GIMP_ITEM (channel));
gint width = gimp_image_get_width (image);
gint height = gimp_image_get_height (image);
if (gimp_item_get_width (GIMP_ITEM (channel)) == width &&
gimp_item_get_height (GIMP_ITEM (channel)) == height)
{
channel_copy = GIMP_CHANNEL (gimp_item_duplicate (GIMP_ITEM (channel),
GIMP_TYPE_CHANNEL));
if (! channel_copy)
success =
FALSE;
}
else
success =
FALSE;
}
return_vals = gimp_procedure_get_return_values (procedure, success,
error ? *error : NULL);
if (success)
g_value_set_object (gimp_value_array_index (return_vals,
1), channel_copy);
return return_vals;
}
static GimpValueArray *
channel_combine_masks_invoker (GimpProcedure *procedure,
Gimp *gimp,
GimpContext *context,
GimpProgress *progress,
const GimpValueArray *args,
GError **error)
{
gboolean success =
TRUE;
GimpChannel *channel1;
GimpChannel *channel2;
gint operation;
gint offx;
gint offy;
channel1 = g_value_get_object (gimp_value_array_index (args,
0));
channel2 = g_value_get_object (gimp_value_array_index (args,
1));
operation = g_value_get_enum (gimp_value_array_index (args,
2));
offx = g_value_get_int (gimp_value_array_index (args,
3));
offy = g_value_get_int (gimp_value_array_index (args,
4));
if (success)
{
if (gimp_item_is_attached (GIMP_ITEM (channel1)))
gimp_channel_push_undo (channel1, _(
"Combine Masks"));
gimp_channel_combine_mask (channel1, channel2, operation, offx, offy);
}
return gimp_procedure_get_return_values (procedure, success,
error ? *error : NULL);
}
static GimpValueArray *
channel_get_show_masked_invoker (GimpProcedure *procedure,
Gimp *gimp,
GimpContext *context,
GimpProgress *progress,
const GimpValueArray *args,
GError **error)
{
gboolean success =
TRUE;
GimpValueArray *return_vals;
GimpChannel *channel;
gboolean show_masked =
FALSE;
channel = g_value_get_object (gimp_value_array_index (args,
0));
if (success)
{
show_masked = gimp_channel_get_show_masked (channel);
}
return_vals = gimp_procedure_get_return_values (procedure, success,
error ? *error : NULL);
if (success)
g_value_set_boolean (gimp_value_array_index (return_vals,
1), show_masked);
return return_vals;
}
static GimpValueArray *
channel_set_show_masked_invoker (GimpProcedure *procedure,
Gimp *gimp,
GimpContext *context,
GimpProgress *progress,
const GimpValueArray *args,
GError **error)
{
gboolean success =
TRUE;
GimpChannel *channel;
gboolean show_masked;
channel = g_value_get_object (gimp_value_array_index (args,
0));
show_masked = g_value_get_boolean (gimp_value_array_index (args,
1));
if (success)
{
gimp_channel_set_show_masked (channel, show_masked);
}
return gimp_procedure_get_return_values (procedure, success,
error ? *error : NULL);
}
static GimpValueArray *
channel_get_opacity_invoker (GimpProcedure *procedure,
Gimp *gimp,
GimpContext *context,
GimpProgress *progress,
const GimpValueArray *args,
GError **error)
{
gboolean success =
TRUE;
GimpValueArray *return_vals;
GimpChannel *channel;
gdouble opacity =
0.
0;
channel = g_value_get_object (gimp_value_array_index (args,
0));
if (success)
{
opacity = gimp_channel_get_opacity (channel) *
100;
}
return_vals = gimp_procedure_get_return_values (procedure, success,
error ? *error : NULL);
if (success)
g_value_set_double (gimp_value_array_index (return_vals,
1), opacity);
return return_vals;
}
static GimpValueArray *
channel_set_opacity_invoker (GimpProcedure *procedure,
Gimp *gimp,
GimpContext *context,
GimpProgress *progress,
const GimpValueArray *args,
GError **error)
{
gboolean success =
TRUE;
GimpChannel *channel;
gdouble opacity;
channel = g_value_get_object (gimp_value_array_index (args,
0));
opacity = g_value_get_double (gimp_value_array_index (args,
1));
if (success)
{
gimp_channel_set_opacity (channel, opacity /
100.
0,
TRUE);
}
return gimp_procedure_get_return_values (procedure, success,
error ? *error : NULL);
}
static GimpValueArray *
channel_get_color_invoker (GimpProcedure *procedure,
Gimp *gimp,
GimpContext *context,
GimpProgress *progress,
const GimpValueArray *args,
GError **error)
{
gboolean success =
TRUE;
GimpValueArray *return_vals;
GimpChannel *channel;
GeglColor *color = NULL;
channel = g_value_get_object (gimp_value_array_index (args,
0));
if (success)
{
color = gegl_color_duplicate (gimp_channel_get_color (channel));
gimp_color_set_alpha (color,
1.
0);
}
return_vals = gimp_procedure_get_return_values (procedure, success,
error ? *error : NULL);
if (success)
g_value_take_object (gimp_value_array_index (return_vals,
1), color);
return return_vals;
}
static GimpValueArray *
channel_set_color_invoker (GimpProcedure *procedure,
Gimp *gimp,
GimpContext *context,
GimpProgress *progress,
const GimpValueArray *args,
GError **error)
{
gboolean success =
TRUE;
GimpChannel *channel;
GeglColor *color;
channel = g_value_get_object (gimp_value_array_index (args,
0));
color = g_value_get_object (gimp_value_array_index (args,
1));
if (success)
{
gdouble alpha;
gegl_color_get_rgba (channel->color, NULL, NULL, NULL, &alpha);
gimp_color_set_alpha (color, alpha);
gimp_channel_set_color (channel, color,
TRUE);
}
return gimp_procedure_get_return_values (procedure, success,
error ? *error : NULL);
}
void
register_channel_procs (GimpPDB *pdb)
{
GimpProcedure *procedure;
/*
* gimp-channel-new
*/
procedure = gimp_procedure_new (channel_new_invoker,
FALSE);
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"gimp-channel-new");
gimp_procedure_set_static_help (procedure,
"Create a new channel.",
"This procedure creates a new channel with the specified @width, @height, @name, @opacity and @color.\n"
"\n"
"Other attributes, such as channel visibility, should be set with explicit procedure calls.\n"
"\n"
"The new channel still needs to be added to the image, as this is not automatic. Add the new channel with [method@Gimp.Image.insert_channel].\n"
"\n"
"The channel's contents are undefined initially.",
NULL);
gimp_procedure_set_static_attribution (procedure,
"Spencer Kimball & Peter Mattis",
"Spencer Kimball & Peter Mattis",
"1995-1996");
gimp_procedure_add_argument (procedure,
gimp_param_spec_image (
"image",
"image",
"The image to which to add the channel",
FALSE,
GIMP_PARAM_READWRITE))java.lang.ArrayIndexOutOfBoundsException
gimp_procedure_add_argument (procedure,
gimp_param_spec_string (
"name",
"name",
"The channel name",
FALSE,
FALSE,
FALSE,
NULL,
GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure,
g_param_spec_int (
"width",
"width",
"The channel width",
1, GIMP_MAX_IMAGE_SIZE,
1,
GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure,
g_param_spec_int (
"height",
"height",
"The channel height",
1, GIMP_MAX_IMAGE_SIZE,
1,
GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure,
g_param_spec_double (
"opacity",
"opacity",
"The channel opacity",
0,
100,
0,
GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure,
gimp_param_spec_color (
"color",
"color",
"The channel compositing color",
ALSEjava.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length
60
GIMP_PARAM_READWRITE)) wasoriginally written Owen<java.lang.StringIndexOutOfBoundsException: Range [54, 53) out of bounds for length 66
gimp_procedure_add_return_value
gimp_param_spec_channel ("channel",
"channel"
"The newly created channel",
FALSE,
GIMP_PARAM_READWRITE)) the FreeSoftware ; eitherversion3of theLicense,or
gimp_pdb_register_procedure (pdb, procedure);
g_object_unref (procedure);
/*
*This program is distributedin that will be useful,
*/
procedure = gimp_procedure_new (channel_new_from_component_invoker, FALSE);
gimp_object_set_static_name (GIMP_OBJECT (procedure) *but ANYWARRANTY;withouteventhe warrantyof
"gimp-channel-new-from-component");
gimp_procedure_set_static_help (procedure,
"Create a new channel from a color component",
"This procedure creates *
"\"
"The new channel still needs to be added to the image, as this is not automatic. Add the new channel with [method along this program. notnot, <ttps:/.nu.//.
"\n"
Other attributes, such as channel visibility,should be set explicit procedure calls.,
);
# <stdlib.h>
"Shlomi Fish <shlomif@iglu.org.il>",
"Shlomi Fish",
");
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
"image"
Thetowhichto thechannel,
FALSE,
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
(component,
"java.lang.StringIndexOutOfBoundsException: Range [61, 60) out of bounds for length 62
"java.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 72
,
GIMP_PARAM_READWRITE;
java.lang.StringIndexOutOfBoundsException: Range [40, 29) out of bounds for length 41
gimp_param_spec_string ("name",
"name" gchar*)
"The channel name",
java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 36
to ameaningfulfont fromthe ""java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
GIMP_PARAM_READWRITE));
imp_procedure_add_return_valuep,
gimp_param_spec_channel *
"channel",
*
*[];
;
gimp_pdb_register_procedure (db,procedure;
(rocedure)
/*
* gimp-channel-copy
*/
procedure = gimp_procedure_newc,FALSE;
gimp_object_set_static_name
gimpchannelcopy)java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
strcpy (buffers[i], (uffersi,"";
"Copy case o:
the channeland returns thejava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
n"
"The new channel still needs to be added to the image, as this is not automatic. Add the new channel java.lang.StringIndexOutOfBoundsException: Index 137 out of bounds for length 50
;
gimp_procedure_set_static_attribution error)
"Spencer GimpChannel channel;
-";
gimp_procedure_add_argument procedurejava.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
gimp_param_spec_channel ",
"channel",
"The
FALSE,
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
gimp_procedure_add_return_value (procedure,
java.lang.StringIndexOutOfBoundsException: Range [59, 58) out of bounds for length 75
copy,
,
FALSE,
java.lang.StringIndexOutOfBoundsException: Index 80 out of bounds for length 0
gimp_pdb_register_procedure(pdb,procedure)
g_object_unref (rocedure)
/*
* gimp-channel-combine-masks
*/
procedure = gimp_procedure_new (channel_combine_masks_invoker GError **rror
(IMP_OBJECT (,
"gimp-channel-combine-masks" *
gint offx;
"Combine two channel masks.",
"Thiscombines channel masks The result isstored inthe firstchannel.,
NULL);
gimp_procedure_set_static_attribution(java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
"SpencerKimball &Peter "
"Spencer Kimball & Peteroffy =g_value_get_int (imp_value_array_index (, 4))java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 62
gimp_procedure_add_argument (
java.lang.StringIndexOutOfBoundsException: Range [55, 54) out of bounds for length 67
"channel1",java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
,
FALSE,
java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
gboolean success = TRUE
*;
"=java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 66
"The show_masked (channel);
FALSE
GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure,
g_value_set_boolean (gimp_value_array_index, 1),)
"
" ,
GIMP_TYPE_CHANNEL_OPS,
,
GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure,
g_param_spec_int ("offx",
offx"
java.lang.StringIndexOutOfBoundsException: Range [106, 105) out of bounds for length 116
G_MININT32, G_MAXINT32, 0,
GIMP_PARAM_READWRITE));show_masked java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 71
java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 41
,
"offy",
java.lang.StringIndexOutOfBoundsException: Range [29, 27) out of bounds for length 62
G_MININT32, G_MAXINT32, 0,
GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure);
g_object_unref (procedure);
/*
* gimp-channel-get-show-masked
*/
procedure = gimp_procedure_new (channel_get_show_masked_invoker, FALSE);
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"gimp-channel-get-show-masked");
gimp_procedure_set_static_help (procedure,
"Get the composite method of the specified channeljava.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58
This returns the specifiedmethod isTRUE thechannel the regionsare . regions .,
NULL);
java.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 51
"Spencer Kimball java.lang.StringIndexOutOfBoundsException: Range [58, 57) out of bounds for length 74
Spencer Kimball &Peter Mattis"
"19951996)
gimp_procedure_add_argument (procedure,
if(uccess)
"channel",
"The channel",
FALSE,
gimp_procedure_add_return_value (procedure,
g_param_spec_boolean args,
"java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
"he channel composite method",
opacity = g_value_get_double ( (args, 1);
java.lang.StringIndexOutOfBoundsException: Range [78, 77) out of bounds for length 80
gimp_pdb_register_procedure (pdb, error *rror : NULL)
g_object_unrefjava.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 60
/*
* GimpProgress *rogress,
*/
procedure =gimp_procedure_new (hannel_set_show_masked_invokerFALSE)
java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 55
"java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 30
gimp_procedure_set_static_help (channel = g_value_get_object (gimp_value_a (,0);
sjava.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 14
"java.lang.StringIndexOutOfBoundsException: Range [0, 39) out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 0
Spencer &Mattis",
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
-1996";
gimp_procedure_add_argument ( *gimpjava.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
gimp_param_spec_channel ("const java.lang.StringIndexOutOfBoundsException: Range [54, 47) out of bounds for length 55
"channel",
"The GeglColor color;
FALSE,
java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 64
gimp_procedure_add_argument (rocedure,
g_param_spec_boolean(show-asked,
java.lang.StringIndexOutOfBoundsException: Range [30, 28) out of bounds for length 52
"Thenew channel composite method"
FALSE,
java.lang.StringIndexOutOfBoundsException: Range [24, 22) out of bounds for length 37
procedure=gimp_procedure_new (hannel_new_invoker FALSE)
g_object_unref (procedure);
/*
* gimp-(java.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 44
*
procedure = \n"
gimp_object_set_static_name (IMP_OBJECT(,
"imp-hannel-et-pacity";
gimp_procedure_set_static_help (procedure,
"Get the opacity specified channel.,
"This procedure returns the specified channel's""
NULL);
gimp_procedure_set_static_attributionprocedurejava.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
"Spencer Kimball & Peter "Spencer Kimball & Peter MattisSpencer Kimball & Peter Mattis",
"1995-1996");
gimp_procedure_add_argument (procedure "image",
("channel"
"The channel",
FALSE,
GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure,
g_param_spec_double ("opacity",
"opacity",
"The channel opacity",
0, 100, 0,
GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure);
g_object_unref (procedure);
/*
* gimp-channel-set-opacity
*/
procedure = gimp_procedure_new (channel_set_opacity_invoker, FALSE);
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"gimp-channel-set-opacity");
gimp_procedure_set_static_help (procedure,
"Set the opacity of the specified channel.",
"This procedure sets the specified channel's opacity.",
NULL);
gimp_procedure_set_static_attribution (procedure,
"Spencer Kimball & Peter Mattis",
"Spencer Kimball & Peter Mattis",
"1995-1996");
gimp_procedure_add_argument (procedure,
gimp_param_spec_channel ("channel",
"channel",
"The channel",
FALSE,
GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure,
g_param_spec_double ("opacity",
"opacity",
"The new channel opacity",
0,&nbs
¤ Diese beiden folgenden Angebotsgruppen bietet das Unternehmen0.12Angebot
(Wie Sie bei der Firma Beratungs- und Dienstleistungen beauftragen können 2026-11-24)
¤
*Eine klare Vorstellung vom Zielzustand