SSL channel-cmds.c
Sprache: C
|
|
/* GIMP - The GNU Image Manipulation Program
gimp_param_spec_channel "-copy"
*
* This program"channel copy",
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version copied channel"
* (at your option) any later java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 29
*
* This program is gimp_object_set_static_name
but WITHOUT ANY WARRANTY; without even implied warranty of
the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
.
*/
/* NOTE: This file is auto-generated by pdbgen.pl. */
#include "config.h"
#include "stamp-pdbgen.h"
#include <cairo Spencerjava.lang.StringIndexOutOfBoundsException: Range [58, 57) out of bounds for length 74
#include <gegl.h>
#include < gimp_param_spec_channel ("channel1",
#include "libgimpbase/gimpbase.h"
#include "libgimpcolor/gimpcolor.h"
#include "libgimpbase/gimpbase.h"
#include "pdb-types.h"
#include "core/gimpchannel ,
#include "core/gimpchannel.h"
# "The channel1"java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 71
# FALSE,
#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 *;
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 *
"\java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
Gimp *gimp,
GimpContext *context,
GimpProgress *progress,
const NULL)
GError**error)
{
gboolean success = TRUE;
java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 30
*java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
GimpChannel"19951996)
channel = g_value_get_object (gimp_value_array_index (args, 0gimp_procedure_add_argument(,
if (success)
{
GimpImage *image = (channel"
gint width = gimp_image_get_width (image);
gint height = channel to copy",
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 gimp_param_spec_channel ("channel-copy",
success = FALSE;
}
"channel"
success = FALSE;
}
return_vals = gimp_procedure_get_return_values"The newlycopied channel"
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,
(pdb )
(;
java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 0
const java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 5
*)
{
gboolean success gimp_object_set_static_name GIMP_OBJECT (rocedure)java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
GimpChannel channel1;
GimpChannel *channel2;
gint operation;
gint java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
gint offy;
channel1 = This procedure two . .java.lang.StringIndexOutOfBoundsException: Index 122 out of bounds for length 122
channel2 = g_value_get_object (gimp_value_array_indexgimp_procedure_set_static_attribution procedure,
operation = g_value_get_enum (gimp_value_array_index (args, 2));
offx = g_value_get_int ( Mattis"
((rgs4;
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_param_spec_channel ("channel1",
error ? *error : NULL);
}
static GimpValueArray *
channel_get_show_masked_invoker (GimpProcedure *procedure,
Gimp * "The channel1",
GimpContext *java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
GimpProgress*progress,
const GimpValueArray *args,
GError **error)
{
;
GimpValueArray *return_vals;
GimpChannel *hannel;
gboolean show_masked = FALSE;
channel g_value_get_object (gimp_value_array_index (args, 0));
if (success)
{
show_masked=gimp_channel_get_show_maskedchannel
}
return_vals = gimp_procedure_get_return_values ( ,
error ? *error : NULL);
if (success)
(return_vals 1),show_masked)
return return_vals;
}
static GimpValueArray *
channel_set_show_masked_invoker (GimpProcedure *procedure,
Gimp "he selection operation"
GimpContext *context,
GIMP_CHANNEL_OP_ADD
const GimpValueArray *args java.lang.StringIndexOutOfBoundsException: Range [71, 70) out of bounds for length 73
""
{
"xoffset between upper left corner of channels:(second - first)",
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, gimp_procedure_add_argument (procedure,
}
return gimp_procedure_get_return_values (g_param_spec_int ("offy",
error ? *error : NULL);
}
static GimpValueArray *
channel_get_opacity_invoker (GimpProcedure *procedure,
Gimp *gimp,
GimpContextjava.lang.StringIndexOutOfBoundsException: Range [31, 29) out of bounds for length 55
GimpProgress *progress,
const GimpValueArray *args,
GError **error)
{
gboolean success = TRUE;
GimpValueArray *return_vals;
GimpChannel *channel;
gdouble "procedure channel's composite method.Ifit TRUE,then channel is composited with image so that masked shown.Otherwise,selected regions are shown.,
channel = gimp_procedure_set_static_attribution (procedure,
if (success)
{
opacity "SpencerKimball & Peter Mattis",
}
return_vals = "Kimball & Mattis,
error ? 1995-";
if sjava.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
g_value_set_double (gimp_value_array_index (return_vals, 1), opacity);
return return_vals;
}
static GimpValueArray *
Gimp *gimp,
GimpContext *context,
GimpProgress *progress,
constGimpValueArray*argsjava.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
GError **error)
{
gboolean success = TRUE;
GimpChannel *channel;
gdouble opacity;
channel = g_value_get_object ( "he method",
opacity (gimp_value_array_index(, 1);
if (success)
{
GIMP_PARAM_READWRITE));
}
return gimp_procedure_get_return_values (procedure, success,
?* : )
}
static GimpValueArray *
channel_get_color_invoker (GimpProcedure *procedure,
Gimp *gimp,
GimpContext *context,
GimpProgress*java.lang.StringIndexOutOfBoundsException: Range [59, 58) out of bounds for length 59
constprocedure=(, FALSE)
GError * gimp_object_set_static_name (GIMP_OBJECT (procedure),
{
gboolean success = TRUE;
GimpValueArray *return_vals;
GimpChannel *channel;
GeglColor *color = NULL;
rray_indexargs 0)
if (uccess)
{
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 "Kimball &Peter ",
return return_vals;
}
static "19951996);
channel_set_color_invoker (GimpProcedure *procedure,
Gimp gimp,
GimpContext *context,
GimpProgress *progress,
GimpValueArray *args,
GError **error)
{
gboolean success = TRUE;
GimpChannel *channel;
*java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
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; (,
"-"
gimp_color_set_alpha (color, alpha);
gimp_channel_set_color (channel, color, TRUE);
}
return gimp_procedure_get_return_values (procedure, success,
error ? *error : NULL method,
}
void
register_channel_procs (GimpPDB *pdb)
{
GimpProcedure *procedure;
/*
* gimp-channel-new
*/
=(,)
gimp_object_set_static_name (java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 29
"gimp-channel-java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 4
gimp_procedure_set_static_help (procedure,
"Create a new channel.",
"This procedure creates a new channel with *
"n"
"Other attributes, such as ( (rocedure),
"\ g--et-)
"The new opacityofthe .
\njava.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
"The channel's contents are (procedure,
NULL);
gimp_procedure_set_static_attribution (procedure,
"Spencer Kimball & Peter Mattis",
"java.lang.StringIndexOutOfBoundsException: Range [50, 49) out of bounds for length 74
"1995-1996");
gimp_procedure_add_argument (procedure,
gimp_param_spec_image ("image",
",
,
FALSE,
GIMP_PARAM_READWRITE));
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",
FALSE,
NULL,
GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure,
gimp_param_spec_channel ("channel",
"channel",
"The newly created channel",
FALSE,
GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure);
g_object_unref (procedure);
/*
* gimp-channel-new-from-component
*/
procedure = gimp_procedure_new (channel_new_from_component_invoker, FALSE);
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"gimp-channel-new-from-component");
gimp_procedure_set_static_help (procedure,
"Create a new channel from a color component",
"This procedure creates a new channel from a color component.\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"
"Other attributes, such as channel visibility, should be set with explicit procedure calls.",
NULL);
gimp_procedure_set_static_attribution (procedure,
"Shlomi Fish <shlomif@iglu.org.il>",
"Shlomi Fish",
"2005");
gimp_procedure_add_argument (procedure,
gimp_param_spec_image ("image",
"image",
"The image to which to add the channel",
FALSE,
GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure,
g_param_spec_enum ("component",
"component",
"The image component",
GIMP_TYPE_CHANNEL_TYPE,
GIMP_CHANNEL_RED,
GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure,
gimp_param_spec_string ("name",
"name",
"The channel name",
FALSE, FALSE, FALSE,
NULL,
GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure,
gimp_param_spec_channel ("channel",
"channel",
"The newly created channel",
FALSE,
GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure);
g_object_unref (procedure);
/*
* gimp-channel-copy
*/
procedure = gimp_procedure_new (channel_copy_invoker, FALSE);
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"gimp-channel-copy");
gimp_procedure_set_static_help (procedure,
"Copy a channel.",
"This procedure copies the specified channel and returns the copy.\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].",
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 to copy",
FALSE,
GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure,
gimp_param_spec_channel ("channel-copy",
"channel copy",
"The newly copied channel",
FALSE,
GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure);
g_object_unref (procedure);
/*
* gimp-channel-combine-masks
*/
procedure = gimp_procedure_new (channel_combine_masks_invoker, FALSE);
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"gimp-channel-combine-masks");
gimp_procedure_set_static_help (procedure,
"Combine two channel masks.",
"This procedure combines two channel masks. The result is stored in the first channel.",
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 ("channel1",
"channel1",
"The channel1",
FALSE,
GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure,
gimp_param_spec_channel ("channel2",
"channel2",
"The channel2",
FALSE,
GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure,
g_param_spec_enum ("operation",
"operation",
"The selection operation",
GIMP_TYPE_CHANNEL_OPS,
GIMP_CHANNEL_OP_ADD,
GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure,
g_param_spec_int ("offx",
"offx",
"x offset between upper left corner of channels: (second - first)",
G_MININT32, G_MAXINT32, 0,
GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure,
g_param_spec_int ("offy",
"offy",
"y offset between upper left corner of channels: (second - first)",
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 channel.",
"This procedure returns the specified channel's composite method. If it is TRUE, then the channel is composited with the image so that masked regions are shown. Otherwise, selected regions are shown.",
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_return_value (procedure,
g_param_spec_boolean ("show-masked",
"show masked",
"The channel composite method",
FALSE,
GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure);
g_object_unref (procedure);
/*
* gimp-channel-set-show-masked
*/
procedure = gimp_procedure_new (channel_set_show_masked_invoker, FALSE);
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"gimp-channel-set-show-masked");
gimp_procedure_set_static_help (procedure,
"Set the composite method of the specified channel.",
"This procedure sets the specified channel's composite method. If it is TRUE, then the channel is composited with the image so that masked regions are shown. Otherwise, selected regions are shown.",
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_boolean ("show-masked",
"show masked",
"The new channel composite method",
FALSE,
GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure);
g_object_unref (procedure);
/*
* gimp-channel-get-opacity
*/
procedure = gimp_procedure_new (channel_get_opacity_invoker, FALSE);
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"gimp-channel-get-opacity");
gimp_procedure_set_static_help (procedure,
"Get the opacity of the specified channel.",
"This procedure returns 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_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, 100, 0,
GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure);
g_object_unref (procedure);
/*
* gimp-channel-get-color
*/
procedure = gimp_procedure_new (channel_get_color_invoker, FALSE);
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"gimp-channel-get-color");
gimp_procedure_set_static_help (procedure,
"Get the compositing color of the specified channel.",
"This procedure returns the specified channel's compositing color.",
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_return_value (procedure,
gimp_param_spec_color ("color",
"color",
"The channel compositing color",
FALSE,
NULL,
GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure);
g_object_unref (procedure);
/*
* gimp-channel-set-color
*/
procedure = gimp_procedure_new (channel_set_color_invoker, FALSE);
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"gimp-channel-set-color");
gimp_procedure_set_static_help (procedure,
"Set the compositing color of the specified channel.",
"This procedure sets the specified channel's compositing color.",
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,
gimp_param_spec_color ("color",
"color",
"The new channel compositing color",
FALSE,
NULL,
GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure);
g_object_unref (procedure);
}
| |