mirror of https://github.com/GNOME/gimp.git
app, pdb, libgimp: Remove all traces of the supersampling recursion level
from all transform APIs. This is no longer used since we use GEGL to transform, the value was only passed around and never used.
This commit is contained in:
parent
38e9c79d1e
commit
3b68ae0f3c
|
@ -113,7 +113,6 @@ static void gimp_channel_transform (GimpItem *item,
|
|||
const GimpMatrix3 *matrix,
|
||||
GimpTransformDirection direction,
|
||||
GimpInterpolationType interpolation_type,
|
||||
gint recursion_level,
|
||||
GimpTransformResize clip_result,
|
||||
GimpProgress *progress);
|
||||
static gboolean gimp_channel_stroke (GimpItem *item,
|
||||
|
@ -750,7 +749,6 @@ gimp_channel_transform (GimpItem *item,
|
|||
const GimpMatrix3 *matrix,
|
||||
GimpTransformDirection direction,
|
||||
GimpInterpolationType interpolation_type,
|
||||
gint recursion_level,
|
||||
GimpTransformResize clip_result,
|
||||
GimpProgress *progress)
|
||||
{
|
||||
|
@ -759,7 +757,6 @@ gimp_channel_transform (GimpItem *item,
|
|||
|
||||
GIMP_ITEM_CLASS (parent_class)->transform (item, context, matrix, direction,
|
||||
interpolation_type,
|
||||
recursion_level,
|
||||
clip_result,
|
||||
progress);
|
||||
}
|
||||
|
|
|
@ -72,7 +72,6 @@ gimp_drawable_transform_buffer_affine (GimpDrawable *drawable,
|
|||
const GimpMatrix3 *matrix,
|
||||
GimpTransformDirection direction,
|
||||
GimpInterpolationType interpolation_type,
|
||||
gint recursion_level,
|
||||
GimpTransformResize clip_result,
|
||||
gint *new_offset_x,
|
||||
gint *new_offset_y,
|
||||
|
@ -613,7 +612,6 @@ gimp_drawable_transform_affine (GimpDrawable *drawable,
|
|||
const GimpMatrix3 *matrix,
|
||||
GimpTransformDirection direction,
|
||||
GimpInterpolationType interpolation_type,
|
||||
gint recursion_level,
|
||||
GimpTransformResize clip_result,
|
||||
GimpProgress *progress)
|
||||
{
|
||||
|
@ -664,7 +662,6 @@ gimp_drawable_transform_affine (GimpDrawable *drawable,
|
|||
matrix,
|
||||
direction,
|
||||
interpolation_type,
|
||||
recursion_level,
|
||||
clip_result,
|
||||
progress);
|
||||
}
|
||||
|
@ -677,7 +674,6 @@ gimp_drawable_transform_affine (GimpDrawable *drawable,
|
|||
matrix,
|
||||
direction,
|
||||
interpolation_type,
|
||||
recursion_level,
|
||||
clip_result,
|
||||
&new_offset_x,
|
||||
&new_offset_y,
|
||||
|
|
|
@ -27,7 +27,6 @@ GeglBuffer * gimp_drawable_transform_buffer_affine (GimpDrawable *dra
|
|||
const GimpMatrix3 *matrix,
|
||||
GimpTransformDirection direction,
|
||||
GimpInterpolationType interpolation_type,
|
||||
gint recursion_level,
|
||||
GimpTransformResize clip_result,
|
||||
gint *new_offset_x,
|
||||
gint *new_offset_y,
|
||||
|
@ -60,7 +59,6 @@ GimpDrawable * gimp_drawable_transform_affine (GimpDrawable *dra
|
|||
const GimpMatrix3 *matrix,
|
||||
GimpTransformDirection direction,
|
||||
GimpInterpolationType interpolation_type,
|
||||
gint recursion_level,
|
||||
GimpTransformResize clip_result,
|
||||
GimpProgress *progress);
|
||||
|
||||
|
|
|
@ -126,7 +126,6 @@ static void gimp_drawable_transform (GimpItem *item,
|
|||
const GimpMatrix3 *matrix,
|
||||
GimpTransformDirection direction,
|
||||
GimpInterpolationType interpolation_type,
|
||||
gint recursion_level,
|
||||
GimpTransformResize clip_result,
|
||||
GimpProgress *progress);
|
||||
|
||||
|
@ -672,7 +671,6 @@ gimp_drawable_transform (GimpItem *item,
|
|||
const GimpMatrix3 *matrix,
|
||||
GimpTransformDirection direction,
|
||||
GimpInterpolationType interpolation_type,
|
||||
gint recursion_level,
|
||||
GimpTransformResize clip_result,
|
||||
GimpProgress *progress)
|
||||
{
|
||||
|
@ -688,7 +686,6 @@ gimp_drawable_transform (GimpItem *item,
|
|||
off_x, off_y,
|
||||
matrix, direction,
|
||||
interpolation_type,
|
||||
recursion_level,
|
||||
clip_result,
|
||||
&new_off_x, &new_off_y,
|
||||
progress);
|
||||
|
|
|
@ -125,7 +125,6 @@ static void gimp_group_layer_transform (GimpItem *item,
|
|||
const GimpMatrix3 *matrix,
|
||||
GimpTransformDirection direction,
|
||||
GimpInterpolationType interpolation_type,
|
||||
gint recursion_level,
|
||||
GimpTransformResize clip_result,
|
||||
GimpProgress *progress);
|
||||
|
||||
|
@ -769,7 +768,6 @@ gimp_group_layer_transform (GimpItem *item,
|
|||
const GimpMatrix3 *matrix,
|
||||
GimpTransformDirection direction,
|
||||
GimpInterpolationType interpolation_type,
|
||||
gint recursion_level,
|
||||
GimpTransformResize clip_result,
|
||||
GimpProgress *progress)
|
||||
{
|
||||
|
@ -788,7 +786,7 @@ gimp_group_layer_transform (GimpItem *item,
|
|||
|
||||
gimp_item_transform (child, context,
|
||||
matrix, direction,
|
||||
interpolation_type, recursion_level,
|
||||
interpolation_type,
|
||||
clip_result, progress);
|
||||
}
|
||||
|
||||
|
@ -797,7 +795,7 @@ gimp_group_layer_transform (GimpItem *item,
|
|||
if (mask)
|
||||
gimp_item_transform (GIMP_ITEM (mask), context,
|
||||
matrix, direction,
|
||||
interpolation_type, recursion_level,
|
||||
interpolation_type,
|
||||
clip_result, progress);
|
||||
|
||||
gimp_group_layer_resume_resize (group, TRUE);
|
||||
|
|
|
@ -119,7 +119,6 @@ gimp_image_item_list_transform (GimpImage *image,
|
|||
const GimpMatrix3 *matrix,
|
||||
GimpTransformDirection direction,
|
||||
GimpInterpolationType interpolation_type,
|
||||
gint recursion_level,
|
||||
GimpTransformResize clip_result,
|
||||
GimpProgress *progress)
|
||||
{
|
||||
|
@ -137,7 +136,7 @@ gimp_image_item_list_transform (GimpImage *image,
|
|||
for (l = list; l; l = g_list_next (l))
|
||||
gimp_item_transform (GIMP_ITEM (l->data), context,
|
||||
matrix, direction,
|
||||
interpolation_type, recursion_level,
|
||||
interpolation_type,
|
||||
clip_result, progress);
|
||||
|
||||
gimp_image_undo_group_end (image);
|
||||
|
|
|
@ -43,7 +43,6 @@ void gimp_image_item_list_transform (GimpImage *image,
|
|||
const GimpMatrix3 *matrix,
|
||||
GimpTransformDirection direction,
|
||||
GimpInterpolationType interpolation_type,
|
||||
gint recursion_level,
|
||||
GimpTransformResize clip_result,
|
||||
GimpProgress *progress);
|
||||
|
||||
|
|
|
@ -165,7 +165,6 @@ gimp_item_linked_transform (GimpItem *item,
|
|||
const GimpMatrix3 *matrix,
|
||||
GimpTransformDirection direction,
|
||||
GimpInterpolationType interpolation_type,
|
||||
gint recursion_level,
|
||||
GimpTransformResize clip_result,
|
||||
GimpProgress *progress)
|
||||
{
|
||||
|
@ -185,7 +184,7 @@ gimp_item_linked_transform (GimpItem *item,
|
|||
|
||||
gimp_image_item_list_transform (gimp_item_get_image (item), list, context,
|
||||
matrix, direction,
|
||||
interpolation_type, recursion_level,
|
||||
interpolation_type,
|
||||
clip_result, progress);
|
||||
|
||||
g_list_free (list);
|
||||
|
|
|
@ -41,7 +41,6 @@ void gimp_item_linked_transform (GimpItem *item,
|
|||
const GimpMatrix3 *matrix,
|
||||
GimpTransformDirection direction,
|
||||
GimpInterpolationType interpolation_type,
|
||||
gint recursion_level,
|
||||
GimpTransformResize clip_result,
|
||||
GimpProgress *progress);
|
||||
|
||||
|
|
|
@ -1461,7 +1461,6 @@ gimp_item_transform (GimpItem *item,
|
|||
const GimpMatrix3 *matrix,
|
||||
GimpTransformDirection direction,
|
||||
GimpInterpolationType interpolation,
|
||||
gint recursion_level,
|
||||
GimpTransformResize clip_result,
|
||||
GimpProgress *progress)
|
||||
{
|
||||
|
@ -1483,7 +1482,7 @@ gimp_item_transform (GimpItem *item,
|
|||
g_object_freeze_notify (G_OBJECT (item));
|
||||
|
||||
item_class->transform (item, context, matrix, direction, interpolation,
|
||||
recursion_level, clip_result, progress);
|
||||
clip_result, progress);
|
||||
|
||||
g_object_thaw_notify (G_OBJECT (item));
|
||||
|
||||
|
|
|
@ -95,7 +95,6 @@ struct _GimpItemClass
|
|||
const GimpMatrix3 *matrix,
|
||||
GimpTransformDirection direction,
|
||||
GimpInterpolationType interpolation_type,
|
||||
gint recursion_level,
|
||||
GimpTransformResize clip_result,
|
||||
GimpProgress *progress);
|
||||
gboolean (* stroke) (GimpItem *item,
|
||||
|
@ -232,7 +231,6 @@ void gimp_item_transform (GimpItem *item,
|
|||
const GimpMatrix3 *matrix,
|
||||
GimpTransformDirection direction,
|
||||
GimpInterpolationType interpolation_type,
|
||||
gint recursion_level,
|
||||
GimpTransformResize clip_result,
|
||||
GimpProgress *progress);
|
||||
|
||||
|
|
|
@ -143,7 +143,6 @@ static void gimp_layer_transform (GimpItem *item,
|
|||
const GimpMatrix3 *matrix,
|
||||
GimpTransformDirection direction,
|
||||
GimpInterpolationType interpolation_type,
|
||||
gint recursion_level,
|
||||
GimpTransformResize clip_result,
|
||||
GimpProgress *progress);
|
||||
static void gimp_layer_to_selection (GimpItem *item,
|
||||
|
@ -936,7 +935,6 @@ gimp_layer_transform (GimpItem *item,
|
|||
const GimpMatrix3 *matrix,
|
||||
GimpTransformDirection direction,
|
||||
GimpInterpolationType interpolation_type,
|
||||
gint recursion_level,
|
||||
GimpTransformResize clip_result,
|
||||
GimpProgress *progress)
|
||||
{
|
||||
|
@ -949,14 +947,13 @@ gimp_layer_transform (GimpItem *item,
|
|||
|
||||
GIMP_ITEM_CLASS (parent_class)->transform (item, context, matrix, direction,
|
||||
interpolation_type,
|
||||
recursion_level,
|
||||
clip_result,
|
||||
progress);
|
||||
|
||||
if (layer->mask)
|
||||
gimp_item_transform (GIMP_ITEM (layer->mask), context,
|
||||
matrix, direction,
|
||||
interpolation_type, recursion_level,
|
||||
interpolation_type,
|
||||
clip_result, progress);
|
||||
}
|
||||
|
||||
|
|
|
@ -1452,9 +1452,7 @@ context_get_transform_recursion_invoker (GimpProcedure *procedure,
|
|||
GimpValueArray *return_vals;
|
||||
gint32 transform_recursion = 0;
|
||||
|
||||
g_object_get (context,
|
||||
"transform-recursion", &transform_recursion,
|
||||
NULL);
|
||||
transform_recursion = 3;
|
||||
|
||||
return_vals = gimp_procedure_get_return_values (procedure, TRUE, NULL);
|
||||
g_value_set_int (gimp_value_array_index (return_vals, 1), transform_recursion);
|
||||
|
@ -1471,17 +1469,9 @@ context_set_transform_recursion_invoker (GimpProcedure *procedure,
|
|||
GError **error)
|
||||
{
|
||||
gboolean success = TRUE;
|
||||
gint32 transform_recursion;
|
||||
|
||||
transform_recursion = g_value_get_int (gimp_value_array_index (args, 0));
|
||||
|
||||
if (success)
|
||||
{
|
||||
g_object_set (context,
|
||||
"transform-recursion", transform_recursion,
|
||||
NULL);
|
||||
}
|
||||
|
||||
return gimp_procedure_get_return_values (procedure, success,
|
||||
error ? *error : NULL);
|
||||
}
|
||||
|
@ -3326,16 +3316,16 @@ register_context_procs (GimpPDB *pdb)
|
|||
"gimp-context-get-transform-recursion");
|
||||
gimp_procedure_set_static_strings (procedure,
|
||||
"gimp-context-get-transform-recursion",
|
||||
"Get the transform supersampling recursion.",
|
||||
"This procedure returns the transform supersampling recursion level.",
|
||||
"Michael Natterer <mitch@gimp.org>",
|
||||
"Michael Natterer",
|
||||
"2010",
|
||||
NULL);
|
||||
"Deprecated: There is no replacement for this procedure.",
|
||||
"Deprecated: There is no replacement for this procedure.",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"NONE");
|
||||
gimp_procedure_add_return_value (procedure,
|
||||
gimp_param_spec_int32 ("transform-recursion",
|
||||
"transform recursion",
|
||||
"The transform recursion level",
|
||||
"This returns always 3 and is meaningless",
|
||||
1, G_MAXINT32, 1,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
@ -3349,16 +3339,16 @@ register_context_procs (GimpPDB *pdb)
|
|||
"gimp-context-set-transform-recursion");
|
||||
gimp_procedure_set_static_strings (procedure,
|
||||
"gimp-context-set-transform-recursion",
|
||||
"Set the transform supersampling recursion.",
|
||||
"This procedure modifies the transform supersampling recursion level setting. Whether or not a transformation does supersampling is determined by the interplolation type. The recursion level defaults to 3, which is a nice default value. This setting affects affects the following procedures: 'gimp-item-transform-flip', 'gimp-item-transform-perspective', 'gimp-item-transform-rotate', 'gimp-item-transform-scale', 'gimp-item-transform-shear', 'gimp-item-transform-2d', 'gimp-item-transform-matrix'.",
|
||||
"Michael Natterer <mitch@gimp.org>",
|
||||
"Michael Natterer",
|
||||
"2010",
|
||||
NULL);
|
||||
"Deprecated: There is no replacement for this procedure.",
|
||||
"Deprecated: There is no replacement for this procedure.",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"NONE");
|
||||
gimp_procedure_add_argument (procedure,
|
||||
gimp_param_spec_int32 ("transform-recursion",
|
||||
"transform recursion",
|
||||
"The transform recursion level",
|
||||
"This parameter is ignored",
|
||||
1, G_MAXINT32, 1,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
|
|
@ -126,7 +126,6 @@ drawable_transform_flip_invoker (GimpProcedure *procedure,
|
|||
gdouble y1;
|
||||
gint32 transform_direction;
|
||||
gint32 interpolation;
|
||||
gint32 recursion_level;
|
||||
gboolean clip_result;
|
||||
|
||||
drawable = gimp_value_get_drawable (gimp_value_array_index (args, 0), gimp);
|
||||
|
@ -136,7 +135,6 @@ drawable_transform_flip_invoker (GimpProcedure *procedure,
|
|||
y1 = g_value_get_double (gimp_value_array_index (args, 4));
|
||||
transform_direction = g_value_get_enum (gimp_value_array_index (args, 5));
|
||||
interpolation = g_value_get_enum (gimp_value_array_index (args, 6));
|
||||
recursion_level = g_value_get_int (gimp_value_array_index (args, 8));
|
||||
clip_result = g_value_get_boolean (gimp_value_array_index (args, 9));
|
||||
|
||||
if (success)
|
||||
|
@ -172,7 +170,7 @@ drawable_transform_flip_invoker (GimpProcedure *procedure,
|
|||
{
|
||||
if (! gimp_drawable_transform_affine (drawable, context,
|
||||
&matrix, transform_direction,
|
||||
interpolation, recursion_level,
|
||||
interpolation,
|
||||
clip_result, progress))
|
||||
{
|
||||
success = FALSE;
|
||||
|
@ -182,7 +180,7 @@ drawable_transform_flip_invoker (GimpProcedure *procedure,
|
|||
{
|
||||
gimp_item_transform (GIMP_ITEM (drawable), context, &matrix,
|
||||
transform_direction,
|
||||
interpolation, recursion_level,
|
||||
interpolation,
|
||||
clip_result, progress);
|
||||
}
|
||||
|
||||
|
@ -262,7 +260,7 @@ drawable_transform_flip_default_invoker (GimpProcedure *procedure,
|
|||
{
|
||||
if (! gimp_drawable_transform_affine (drawable, context,
|
||||
&matrix, GIMP_TRANSFORM_FORWARD,
|
||||
interpolation_type, 3,
|
||||
interpolation_type,
|
||||
clip_result, progress))
|
||||
{
|
||||
success = FALSE;
|
||||
|
@ -272,7 +270,7 @@ drawable_transform_flip_default_invoker (GimpProcedure *procedure,
|
|||
{
|
||||
gimp_item_transform (GIMP_ITEM (drawable), context, &matrix,
|
||||
GIMP_TRANSFORM_FORWARD,
|
||||
interpolation_type, 3,
|
||||
interpolation_type,
|
||||
clip_result, progress);
|
||||
}
|
||||
|
||||
|
@ -311,7 +309,6 @@ drawable_transform_perspective_invoker (GimpProcedure *procedure,
|
|||
gdouble y3;
|
||||
gint32 transform_direction;
|
||||
gint32 interpolation;
|
||||
gint32 recursion_level;
|
||||
gint32 clip_result;
|
||||
|
||||
drawable = gimp_value_get_drawable (gimp_value_array_index (args, 0), gimp);
|
||||
|
@ -325,7 +322,6 @@ drawable_transform_perspective_invoker (GimpProcedure *procedure,
|
|||
y3 = g_value_get_double (gimp_value_array_index (args, 8));
|
||||
transform_direction = g_value_get_enum (gimp_value_array_index (args, 9));
|
||||
interpolation = g_value_get_enum (gimp_value_array_index (args, 10));
|
||||
recursion_level = g_value_get_int (gimp_value_array_index (args, 12));
|
||||
clip_result = g_value_get_enum (gimp_value_array_index (args, 13));
|
||||
|
||||
if (success)
|
||||
|
@ -363,7 +359,7 @@ drawable_transform_perspective_invoker (GimpProcedure *procedure,
|
|||
{
|
||||
if (! gimp_drawable_transform_affine (drawable, context,
|
||||
&matrix, transform_direction,
|
||||
interpolation, recursion_level,
|
||||
interpolation,
|
||||
clip_result, progress))
|
||||
{
|
||||
success = FALSE;
|
||||
|
@ -373,7 +369,7 @@ drawable_transform_perspective_invoker (GimpProcedure *procedure,
|
|||
{
|
||||
gimp_item_transform (GIMP_ITEM (drawable), context, &matrix,
|
||||
transform_direction,
|
||||
interpolation, recursion_level,
|
||||
interpolation,
|
||||
clip_result, progress);
|
||||
}
|
||||
|
||||
|
@ -463,7 +459,7 @@ drawable_transform_perspective_default_invoker (GimpProcedure *procedure
|
|||
{
|
||||
if (! gimp_drawable_transform_affine (drawable, context,
|
||||
&matrix, GIMP_TRANSFORM_FORWARD,
|
||||
interpolation_type, 3,
|
||||
interpolation_type,
|
||||
clip_result, progress))
|
||||
{
|
||||
success = FALSE;
|
||||
|
@ -473,7 +469,7 @@ drawable_transform_perspective_default_invoker (GimpProcedure *procedure
|
|||
{
|
||||
gimp_item_transform (GIMP_ITEM (drawable), context, &matrix,
|
||||
GIMP_TRANSFORM_FORWARD,
|
||||
interpolation_type, 3,
|
||||
interpolation_type,
|
||||
clip_result, progress);
|
||||
}
|
||||
|
||||
|
@ -577,7 +573,6 @@ drawable_transform_rotate_invoker (GimpProcedure *procedure,
|
|||
gint32 center_y;
|
||||
gint32 transform_direction;
|
||||
gint32 interpolation;
|
||||
gint32 recursion_level;
|
||||
gint32 clip_result;
|
||||
|
||||
drawable = gimp_value_get_drawable (gimp_value_array_index (args, 0), gimp);
|
||||
|
@ -587,7 +582,6 @@ drawable_transform_rotate_invoker (GimpProcedure *procedure,
|
|||
center_y = g_value_get_int (gimp_value_array_index (args, 4));
|
||||
transform_direction = g_value_get_enum (gimp_value_array_index (args, 5));
|
||||
interpolation = g_value_get_enum (gimp_value_array_index (args, 6));
|
||||
recursion_level = g_value_get_int (gimp_value_array_index (args, 8));
|
||||
clip_result = g_value_get_enum (gimp_value_array_index (args, 9));
|
||||
|
||||
if (success)
|
||||
|
@ -627,7 +621,7 @@ drawable_transform_rotate_invoker (GimpProcedure *procedure,
|
|||
{
|
||||
if (! gimp_drawable_transform_affine (drawable, context,
|
||||
&matrix, transform_direction,
|
||||
interpolation, recursion_level,
|
||||
interpolation,
|
||||
clip_result, progress))
|
||||
{
|
||||
success = FALSE;
|
||||
|
@ -637,7 +631,7 @@ drawable_transform_rotate_invoker (GimpProcedure *procedure,
|
|||
{
|
||||
gimp_item_transform (GIMP_ITEM (drawable), context, &matrix,
|
||||
transform_direction,
|
||||
interpolation, recursion_level,
|
||||
interpolation,
|
||||
clip_result, progress);
|
||||
}
|
||||
|
||||
|
@ -721,7 +715,7 @@ drawable_transform_rotate_default_invoker (GimpProcedure *procedure,
|
|||
{
|
||||
if (! gimp_drawable_transform_affine (drawable, context,
|
||||
&matrix, GIMP_TRANSFORM_FORWARD,
|
||||
interpolation_type, 3,
|
||||
interpolation_type,
|
||||
clip_result, progress))
|
||||
{
|
||||
success = FALSE;
|
||||
|
@ -731,7 +725,7 @@ drawable_transform_rotate_default_invoker (GimpProcedure *procedure,
|
|||
{
|
||||
gimp_item_transform (GIMP_ITEM (drawable), context, &matrix,
|
||||
GIMP_TRANSFORM_FORWARD,
|
||||
interpolation_type, 3,
|
||||
interpolation_type,
|
||||
clip_result, progress);
|
||||
}
|
||||
|
||||
|
@ -766,7 +760,6 @@ drawable_transform_scale_invoker (GimpProcedure *procedure,
|
|||
gdouble y1;
|
||||
gint32 transform_direction;
|
||||
gint32 interpolation;
|
||||
gint32 recursion_level;
|
||||
gint32 clip_result;
|
||||
|
||||
drawable = gimp_value_get_drawable (gimp_value_array_index (args, 0), gimp);
|
||||
|
@ -776,7 +769,6 @@ drawable_transform_scale_invoker (GimpProcedure *procedure,
|
|||
y1 = g_value_get_double (gimp_value_array_index (args, 4));
|
||||
transform_direction = g_value_get_enum (gimp_value_array_index (args, 5));
|
||||
interpolation = g_value_get_enum (gimp_value_array_index (args, 6));
|
||||
recursion_level = g_value_get_int (gimp_value_array_index (args, 8));
|
||||
clip_result = g_value_get_enum (gimp_value_array_index (args, 9));
|
||||
|
||||
if (success)
|
||||
|
@ -812,7 +804,7 @@ drawable_transform_scale_invoker (GimpProcedure *procedure,
|
|||
{
|
||||
if (! gimp_drawable_transform_affine (drawable, context,
|
||||
&matrix, transform_direction,
|
||||
interpolation, recursion_level,
|
||||
interpolation,
|
||||
clip_result, progress))
|
||||
{
|
||||
success = FALSE;
|
||||
|
@ -822,7 +814,7 @@ drawable_transform_scale_invoker (GimpProcedure *procedure,
|
|||
{
|
||||
gimp_item_transform (GIMP_ITEM (drawable), context, &matrix,
|
||||
transform_direction,
|
||||
interpolation, recursion_level,
|
||||
interpolation,
|
||||
clip_result, progress);
|
||||
}
|
||||
|
||||
|
@ -903,7 +895,7 @@ drawable_transform_scale_default_invoker (GimpProcedure *procedure,
|
|||
{
|
||||
if (! gimp_drawable_transform_affine (drawable, context,
|
||||
&matrix, GIMP_TRANSFORM_FORWARD,
|
||||
interpolation_type, 3,
|
||||
interpolation_type,
|
||||
clip_result, progress))
|
||||
{
|
||||
success = FALSE;
|
||||
|
@ -913,7 +905,7 @@ drawable_transform_scale_default_invoker (GimpProcedure *procedure,
|
|||
{
|
||||
gimp_item_transform (GIMP_ITEM (drawable), context, &matrix,
|
||||
GIMP_TRANSFORM_FORWARD,
|
||||
interpolation_type, 3,
|
||||
interpolation_type,
|
||||
clip_result, progress);
|
||||
}
|
||||
|
||||
|
@ -946,7 +938,6 @@ drawable_transform_shear_invoker (GimpProcedure *procedure,
|
|||
gdouble magnitude;
|
||||
gint32 transform_direction;
|
||||
gint32 interpolation;
|
||||
gint32 recursion_level;
|
||||
gint32 clip_result;
|
||||
|
||||
drawable = gimp_value_get_drawable (gimp_value_array_index (args, 0), gimp);
|
||||
|
@ -954,7 +945,6 @@ drawable_transform_shear_invoker (GimpProcedure *procedure,
|
|||
magnitude = g_value_get_double (gimp_value_array_index (args, 2));
|
||||
transform_direction = g_value_get_enum (gimp_value_array_index (args, 3));
|
||||
interpolation = g_value_get_enum (gimp_value_array_index (args, 4));
|
||||
recursion_level = g_value_get_int (gimp_value_array_index (args, 6));
|
||||
clip_result = g_value_get_enum (gimp_value_array_index (args, 7));
|
||||
|
||||
if (success)
|
||||
|
@ -991,7 +981,7 @@ drawable_transform_shear_invoker (GimpProcedure *procedure,
|
|||
{
|
||||
if (! gimp_drawable_transform_affine (drawable, context,
|
||||
&matrix, transform_direction,
|
||||
interpolation, recursion_level,
|
||||
interpolation,
|
||||
clip_result, progress))
|
||||
{
|
||||
success = FALSE;
|
||||
|
@ -1001,7 +991,7 @@ drawable_transform_shear_invoker (GimpProcedure *procedure,
|
|||
{
|
||||
gimp_item_transform (GIMP_ITEM (drawable), context, &matrix,
|
||||
transform_direction,
|
||||
interpolation, recursion_level,
|
||||
interpolation,
|
||||
clip_result, progress);
|
||||
}
|
||||
|
||||
|
@ -1078,7 +1068,7 @@ drawable_transform_shear_default_invoker (GimpProcedure *procedure,
|
|||
{
|
||||
if (! gimp_drawable_transform_affine (drawable, context,
|
||||
&matrix, GIMP_TRANSFORM_FORWARD,
|
||||
interpolation_type, 3,
|
||||
interpolation_type,
|
||||
clip_result, progress))
|
||||
{
|
||||
success = FALSE;
|
||||
|
@ -1088,7 +1078,7 @@ drawable_transform_shear_default_invoker (GimpProcedure *procedure,
|
|||
{
|
||||
gimp_item_transform (GIMP_ITEM (drawable), context, &matrix,
|
||||
GIMP_TRANSFORM_FORWARD,
|
||||
interpolation_type, 3,
|
||||
interpolation_type,
|
||||
clip_result, progress);
|
||||
}
|
||||
|
||||
|
@ -1126,7 +1116,6 @@ drawable_transform_2d_invoker (GimpProcedure *procedure,
|
|||
gdouble dest_y;
|
||||
gint32 transform_direction;
|
||||
gint32 interpolation;
|
||||
gint32 recursion_level;
|
||||
gint32 clip_result;
|
||||
|
||||
drawable = gimp_value_get_drawable (gimp_value_array_index (args, 0), gimp);
|
||||
|
@ -1139,7 +1128,6 @@ drawable_transform_2d_invoker (GimpProcedure *procedure,
|
|||
dest_y = g_value_get_double (gimp_value_array_index (args, 7));
|
||||
transform_direction = g_value_get_enum (gimp_value_array_index (args, 8));
|
||||
interpolation = g_value_get_enum (gimp_value_array_index (args, 9));
|
||||
recursion_level = g_value_get_int (gimp_value_array_index (args, 11));
|
||||
clip_result = g_value_get_enum (gimp_value_array_index (args, 12));
|
||||
|
||||
if (success)
|
||||
|
@ -1177,7 +1165,7 @@ drawable_transform_2d_invoker (GimpProcedure *procedure,
|
|||
{
|
||||
if (! gimp_drawable_transform_affine (drawable, context,
|
||||
&matrix, transform_direction,
|
||||
interpolation, recursion_level,
|
||||
interpolation,
|
||||
clip_result, progress))
|
||||
{
|
||||
success = FALSE;
|
||||
|
@ -1187,7 +1175,7 @@ drawable_transform_2d_invoker (GimpProcedure *procedure,
|
|||
{
|
||||
gimp_item_transform (GIMP_ITEM (drawable), context, &matrix,
|
||||
transform_direction,
|
||||
interpolation, recursion_level,
|
||||
interpolation,
|
||||
clip_result, progress);
|
||||
}
|
||||
|
||||
|
@ -1275,7 +1263,7 @@ drawable_transform_2d_default_invoker (GimpProcedure *procedure,
|
|||
{
|
||||
if (! gimp_drawable_transform_affine (drawable, context,
|
||||
&matrix, GIMP_TRANSFORM_FORWARD,
|
||||
interpolation_type, 3,
|
||||
interpolation_type,
|
||||
clip_result, progress))
|
||||
{
|
||||
success = FALSE;
|
||||
|
@ -1285,7 +1273,7 @@ drawable_transform_2d_default_invoker (GimpProcedure *procedure,
|
|||
{
|
||||
gimp_item_transform (GIMP_ITEM (drawable), context, &matrix,
|
||||
GIMP_TRANSFORM_FORWARD,
|
||||
interpolation_type, 3,
|
||||
interpolation_type,
|
||||
clip_result, progress);
|
||||
}
|
||||
|
||||
|
@ -1325,7 +1313,6 @@ drawable_transform_matrix_invoker (GimpProcedure *procedure,
|
|||
gdouble coeff_2_2;
|
||||
gint32 transform_direction;
|
||||
gint32 interpolation;
|
||||
gint32 recursion_level;
|
||||
gint32 clip_result;
|
||||
|
||||
drawable = gimp_value_get_drawable (gimp_value_array_index (args, 0), gimp);
|
||||
|
@ -1340,7 +1327,6 @@ drawable_transform_matrix_invoker (GimpProcedure *procedure,
|
|||
coeff_2_2 = g_value_get_double (gimp_value_array_index (args, 9));
|
||||
transform_direction = g_value_get_enum (gimp_value_array_index (args, 10));
|
||||
interpolation = g_value_get_enum (gimp_value_array_index (args, 11));
|
||||
recursion_level = g_value_get_int (gimp_value_array_index (args, 13));
|
||||
clip_result = g_value_get_enum (gimp_value_array_index (args, 14));
|
||||
|
||||
if (success)
|
||||
|
@ -1382,7 +1368,7 @@ drawable_transform_matrix_invoker (GimpProcedure *procedure,
|
|||
{
|
||||
if (! gimp_drawable_transform_affine (drawable, context,
|
||||
&matrix, transform_direction,
|
||||
interpolation, recursion_level,
|
||||
interpolation,
|
||||
clip_result, progress))
|
||||
{
|
||||
success = FALSE;
|
||||
|
@ -1392,7 +1378,7 @@ drawable_transform_matrix_invoker (GimpProcedure *procedure,
|
|||
{
|
||||
gimp_item_transform (GIMP_ITEM (drawable), context, &matrix,
|
||||
transform_direction,
|
||||
interpolation, recursion_level,
|
||||
interpolation,
|
||||
clip_result, progress);
|
||||
}
|
||||
|
||||
|
@ -1488,7 +1474,7 @@ drawable_transform_matrix_default_invoker (GimpProcedure *procedure,
|
|||
{
|
||||
if (! gimp_drawable_transform_affine (drawable, context,
|
||||
&matrix, GIMP_TRANSFORM_FORWARD,
|
||||
interpolation_type, 3,
|
||||
interpolation_type,
|
||||
clip_result, progress))
|
||||
{
|
||||
success = FALSE;
|
||||
|
@ -1498,7 +1484,7 @@ drawable_transform_matrix_default_invoker (GimpProcedure *procedure,
|
|||
{
|
||||
gimp_item_transform (GIMP_ITEM (drawable), context, &matrix,
|
||||
GIMP_TRANSFORM_FORWARD,
|
||||
interpolation_type, 3,
|
||||
interpolation_type,
|
||||
clip_result, progress);
|
||||
}
|
||||
|
||||
|
@ -1638,13 +1624,13 @@ register_drawable_transform_procs (GimpPDB *pdb)
|
|||
gimp_procedure_add_argument (procedure,
|
||||
g_param_spec_boolean ("supersample",
|
||||
"supersample",
|
||||
"This parameter is ignored, supersampling is performed based on the interpolation type",
|
||||
"This parameter is ignored",
|
||||
FALSE,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
gimp_param_spec_int32 ("recursion-level",
|
||||
"recursion level",
|
||||
"Maximum recursion level used for supersampling (3 is a nice value)",
|
||||
"This parameter is ignored",
|
||||
1, G_MAXINT32, 1,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
|
@ -1812,13 +1798,13 @@ register_drawable_transform_procs (GimpPDB *pdb)
|
|||
gimp_procedure_add_argument (procedure,
|
||||
g_param_spec_boolean ("supersample",
|
||||
"supersample",
|
||||
"This parameter is ignored, supersampling is performed based on the interpolation type",
|
||||
"This parameter is ignored",
|
||||
FALSE,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
gimp_param_spec_int32 ("recursion-level",
|
||||
"recursion level",
|
||||
"Maximum recursion level used for supersampling (3 is a nice value)",
|
||||
"This parameter is ignored",
|
||||
1, G_MAXINT32, 1,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
|
@ -2048,13 +2034,13 @@ register_drawable_transform_procs (GimpPDB *pdb)
|
|||
gimp_procedure_add_argument (procedure,
|
||||
g_param_spec_boolean ("supersample",
|
||||
"supersample",
|
||||
"This parameter is ignored, supersampling is performed based on the interpolation type",
|
||||
"This parameter is ignored",
|
||||
FALSE,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
gimp_param_spec_int32 ("recursion-level",
|
||||
"recursion level",
|
||||
"Maximum recursion level used for supersampling (3 is a nice value)",
|
||||
"This parameter is ignored",
|
||||
1, G_MAXINT32, 1,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
|
@ -2200,13 +2186,13 @@ register_drawable_transform_procs (GimpPDB *pdb)
|
|||
gimp_procedure_add_argument (procedure,
|
||||
g_param_spec_boolean ("supersample",
|
||||
"supersample",
|
||||
"This parameter is ignored, supersampling is performed based on the interpolation type",
|
||||
"This parameter is ignored",
|
||||
FALSE,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
gimp_param_spec_int32 ("recursion-level",
|
||||
"recursion level",
|
||||
"Maximum recursion level used for supersampling (3 is a nice value)",
|
||||
"This parameter is ignored",
|
||||
1, G_MAXINT32, 1,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
|
@ -2343,13 +2329,13 @@ register_drawable_transform_procs (GimpPDB *pdb)
|
|||
gimp_procedure_add_argument (procedure,
|
||||
g_param_spec_boolean ("supersample",
|
||||
"supersample",
|
||||
"This parameter is ignored, supersampling is performed based on the interpolation type",
|
||||
"This parameter is ignored",
|
||||
FALSE,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
gimp_param_spec_int32 ("recursion-level",
|
||||
"recursion level",
|
||||
"Maximum recursion level used for supersampling (3 is a nice value)",
|
||||
"This parameter is ignored",
|
||||
1, G_MAXINT32, 1,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
|
@ -2504,13 +2490,13 @@ register_drawable_transform_procs (GimpPDB *pdb)
|
|||
gimp_procedure_add_argument (procedure,
|
||||
g_param_spec_boolean ("supersample",
|
||||
"supersample",
|
||||
"This parameter is ignored, supersampling is performed based on the interpolation type",
|
||||
"This parameter is ignored",
|
||||
FALSE,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
gimp_param_spec_int32 ("recursion-level",
|
||||
"recursion level",
|
||||
"Maximum recursion level used for supersampling (3 is a nice value)",
|
||||
"This parameter is ignored",
|
||||
1, G_MAXINT32, 1,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
|
@ -2704,13 +2690,13 @@ register_drawable_transform_procs (GimpPDB *pdb)
|
|||
gimp_procedure_add_argument (procedure,
|
||||
g_param_spec_boolean ("supersample",
|
||||
"supersample",
|
||||
"This parameter is ignored, supersampling is performed based on the interpolation type",
|
||||
"This parameter is ignored",
|
||||
FALSE,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
gimp_param_spec_int32 ("recursion-level",
|
||||
"recursion level",
|
||||
"Maximum recursion level used for supersampling (3 is a nice value)",
|
||||
"This parameter is ignored",
|
||||
1, G_MAXINT32, 1,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
|
|
|
@ -52,8 +52,7 @@ enum
|
|||
PROP_SAMPLE_TRANSPARENT,
|
||||
PROP_INTERPOLATION,
|
||||
PROP_TRANSFORM_DIRECTION,
|
||||
PROP_TRANSFORM_RESIZE,
|
||||
PROP_TRANSFORM_RECURSION
|
||||
PROP_TRANSFORM_RESIZE
|
||||
};
|
||||
|
||||
|
||||
|
@ -143,11 +142,6 @@ gimp_pdb_context_class_init (GimpPDBContextClass *klass)
|
|||
GIMP_TYPE_TRANSFORM_RESIZE,
|
||||
GIMP_TRANSFORM_RESIZE_ADJUST,
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
|
||||
GIMP_CONFIG_INSTALL_PROP_INT (object_class, PROP_TRANSFORM_RECURSION,
|
||||
"transform-recursion", NULL,
|
||||
1, G_MAXINT32, 3,
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -259,10 +253,6 @@ gimp_pdb_context_set_property (GObject *object,
|
|||
options->transform_resize = g_value_get_enum (value);
|
||||
break;
|
||||
|
||||
case PROP_TRANSFORM_RECURSION:
|
||||
options->transform_recursion = g_value_get_int (value);
|
||||
break;
|
||||
|
||||
default:
|
||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
|
||||
break;
|
||||
|
@ -323,10 +313,6 @@ gimp_pdb_context_get_property (GObject *object,
|
|||
g_value_set_enum (value, options->transform_resize);
|
||||
break;
|
||||
|
||||
case PROP_TRANSFORM_RECURSION:
|
||||
g_value_set_int (value, options->transform_recursion);
|
||||
break;
|
||||
|
||||
default:
|
||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
|
||||
break;
|
||||
|
|
|
@ -51,7 +51,6 @@ struct _GimpPDBContext
|
|||
GimpInterpolationType interpolation;
|
||||
GimpTransformDirection transform_direction;
|
||||
GimpTransformResize transform_resize;
|
||||
gint transform_recursion;
|
||||
|
||||
GimpContainer *paint_options_list;
|
||||
};
|
||||
|
|
|
@ -179,7 +179,6 @@ item_transform_flip_invoker (GimpProcedure *procedure,
|
|||
context, &matrix,
|
||||
pdb_context->transform_direction,
|
||||
pdb_context->interpolation,
|
||||
pdb_context->transform_recursion,
|
||||
pdb_context->transform_resize,
|
||||
progress);
|
||||
|
||||
|
@ -193,7 +192,6 @@ item_transform_flip_invoker (GimpProcedure *procedure,
|
|||
gimp_item_transform (item, context, &matrix,
|
||||
pdb_context->transform_direction,
|
||||
pdb_context->interpolation,
|
||||
pdb_context->transform_recursion,
|
||||
pdb_context->transform_resize,
|
||||
progress);
|
||||
}
|
||||
|
@ -281,7 +279,6 @@ item_transform_perspective_invoker (GimpProcedure *procedure,
|
|||
context, &matrix,
|
||||
pdb_context->transform_direction,
|
||||
pdb_context->interpolation,
|
||||
pdb_context->transform_recursion,
|
||||
pdb_context->transform_resize,
|
||||
progress);
|
||||
|
||||
|
@ -295,7 +292,6 @@ item_transform_perspective_invoker (GimpProcedure *procedure,
|
|||
gimp_item_transform (item, context, &matrix,
|
||||
pdb_context->transform_direction,
|
||||
pdb_context->interpolation,
|
||||
pdb_context->transform_recursion,
|
||||
pdb_context->transform_resize,
|
||||
progress);
|
||||
}
|
||||
|
@ -456,7 +452,6 @@ item_transform_rotate_invoker (GimpProcedure *procedure,
|
|||
context, &matrix,
|
||||
pdb_context->transform_direction,
|
||||
pdb_context->interpolation,
|
||||
pdb_context->transform_recursion,
|
||||
pdb_context->transform_resize,
|
||||
progress);
|
||||
|
||||
|
@ -470,7 +465,6 @@ item_transform_rotate_invoker (GimpProcedure *procedure,
|
|||
gimp_item_transform (item, context, &matrix,
|
||||
pdb_context->transform_direction,
|
||||
pdb_context->interpolation,
|
||||
pdb_context->transform_recursion,
|
||||
pdb_context->transform_resize,
|
||||
progress);
|
||||
}
|
||||
|
@ -549,7 +543,6 @@ item_transform_scale_invoker (GimpProcedure *procedure,
|
|||
context, &matrix,
|
||||
pdb_context->transform_direction,
|
||||
pdb_context->interpolation,
|
||||
pdb_context->transform_recursion,
|
||||
pdb_context->transform_resize,
|
||||
progress);
|
||||
|
||||
|
@ -563,7 +556,6 @@ item_transform_scale_invoker (GimpProcedure *procedure,
|
|||
gimp_item_transform (item, context, &matrix,
|
||||
pdb_context->transform_direction,
|
||||
pdb_context->interpolation,
|
||||
pdb_context->transform_recursion,
|
||||
pdb_context->transform_resize,
|
||||
progress);
|
||||
}
|
||||
|
@ -638,7 +630,6 @@ item_transform_shear_invoker (GimpProcedure *procedure,
|
|||
context, &matrix,
|
||||
pdb_context->transform_direction,
|
||||
pdb_context->interpolation,
|
||||
pdb_context->transform_recursion,
|
||||
pdb_context->transform_resize,
|
||||
progress);
|
||||
|
||||
|
@ -652,7 +643,6 @@ item_transform_shear_invoker (GimpProcedure *procedure,
|
|||
gimp_item_transform (item, context, &matrix,
|
||||
pdb_context->transform_direction,
|
||||
pdb_context->interpolation,
|
||||
pdb_context->transform_recursion,
|
||||
pdb_context->transform_resize,
|
||||
progress);
|
||||
}
|
||||
|
@ -738,7 +728,6 @@ item_transform_2d_invoker (GimpProcedure *procedure,
|
|||
context, &matrix,
|
||||
pdb_context->transform_direction,
|
||||
pdb_context->interpolation,
|
||||
pdb_context->transform_recursion,
|
||||
pdb_context->transform_resize,
|
||||
progress);
|
||||
|
||||
|
@ -752,7 +741,6 @@ item_transform_2d_invoker (GimpProcedure *procedure,
|
|||
gimp_item_transform (item, context, &matrix,
|
||||
pdb_context->transform_direction,
|
||||
pdb_context->interpolation,
|
||||
pdb_context->transform_recursion,
|
||||
pdb_context->transform_resize,
|
||||
progress);
|
||||
}
|
||||
|
@ -846,7 +834,6 @@ item_transform_matrix_invoker (GimpProcedure *procedure,
|
|||
context, &matrix,
|
||||
pdb_context->transform_direction,
|
||||
pdb_context->interpolation,
|
||||
pdb_context->transform_recursion,
|
||||
pdb_context->transform_resize,
|
||||
progress);
|
||||
|
||||
|
@ -860,7 +847,6 @@ item_transform_matrix_invoker (GimpProcedure *procedure,
|
|||
gimp_item_transform (item, context, &matrix,
|
||||
pdb_context->transform_direction,
|
||||
pdb_context->interpolation,
|
||||
pdb_context->transform_recursion,
|
||||
pdb_context->transform_resize,
|
||||
progress);
|
||||
}
|
||||
|
@ -943,7 +929,7 @@ register_item_transform_procs (GimpPDB *pdb)
|
|||
gimp_procedure_set_static_strings (procedure,
|
||||
"gimp-item-transform-flip",
|
||||
"Flip the specified item around a given line.",
|
||||
"This procedure flips the specified item. If a selection exists and the item is a drawable , the portion of the drawable which lies under the selection is cut from the drawable and made into a floating selection which is then flipped. The axis to flip around is specified by specifying two points from that line. The return value is the ID of the flipped item. If there was no selection or the item is not a drawable, this will be equal to the item ID supplied as input. Otherwise, this will be the newly created and flipped drawable. This procedure is affected by the following context setters: 'gimp-context-set-interpolation', 'gimp-context-set-transform-direction', 'gimp-context-set-transform-resize', 'gimp-context-set-transform-recursion'.",
|
||||
"This procedure flips the specified item. If a selection exists and the item is a drawable , the portion of the drawable which lies under the selection is cut from the drawable and made into a floating selection which is then flipped. The axis to flip around is specified by specifying two points from that line. The return value is the ID of the flipped item. If there was no selection or the item is not a drawable, this will be equal to the item ID supplied as input. Otherwise, this will be the newly created and flipped drawable. This procedure is affected by the following context setters: 'gimp-context-set-interpolation', 'gimp-context-set-transform-direction', 'gimp-context-set-transform-resize'.",
|
||||
"Michael Natterer <mitch@gimp.org>",
|
||||
"Michael Natterer",
|
||||
"2010",
|
||||
|
@ -997,7 +983,7 @@ register_item_transform_procs (GimpPDB *pdb)
|
|||
"gimp-item-transform-perspective",
|
||||
"Perform a possibly non-affine transformation on the specified item.",
|
||||
"This procedure performs a possibly non-affine transformation on the specified item by allowing the corners of the original bounding box to be arbitrarily remapped to any values. The specified item is remapped if no selection exists or it is not a drawable. However, if a selection exists and the item is a drawable, the portion of the drawable which lies under the selection is cut from the drawable and made into a floating selection which is then remapped as specified. The return value is the ID of the remapped item. If there was no selection or the item is not a drawable, this will be equal to the item ID supplied as input. Otherwise, this will be the newly created and remapped drawable. The 4 coordinates specify the new locations of each corner of the original bounding box. By specifying these values, any affine transformation (rotation, scaling, translation) can be affected. Additionally, these values can be specified such that the resulting transformed item will appear to have"
|
||||
"been projected via a perspective transform. This procedure is affected by the following context setters: 'gimp-context-set-interpolation', 'gimp-context-set-transform-direction', 'gimp-context-set-transform-resize', 'gimp-context-set-transform-recursion'.",
|
||||
"been projected via a perspective transform. This procedure is affected by the following context setters: 'gimp-context-set-interpolation', 'gimp-context-set-transform-direction', 'gimp-context-set-transform-resize'.",
|
||||
"Michael Natterer <mitch@gimp.org>",
|
||||
"Michael Natterer",
|
||||
"2010",
|
||||
|
@ -1128,7 +1114,7 @@ register_item_transform_procs (GimpPDB *pdb)
|
|||
gimp_procedure_set_static_strings (procedure,
|
||||
"gimp-item-transform-rotate",
|
||||
"Rotate the specified item about given coordinates through the specified angle.",
|
||||
"This function rotates the specified item. If a selection exists and the item is a drawable, the portion of the drawable which lies under the selection is cut from the drawable and made into a floating selection which is then rotated by the specified amount. The return value is the ID of the rotated item. If there was no selection or the item is not a drawable, this will be equal to the item ID supplied as input. Otherwise, this will be the newly created and rotated drawable. This procedure is affected by the following context setters: 'gimp-context-set-interpolation', 'gimp-context-set-transform-direction', 'gimp-context-set-transform-resize', 'gimp-context-set-transform-recursion'.",
|
||||
"This function rotates the specified item. If a selection exists and the item is a drawable, the portion of the drawable which lies under the selection is cut from the drawable and made into a floating selection which is then rotated by the specified amount. The return value is the ID of the rotated item. If there was no selection or the item is not a drawable, this will be equal to the item ID supplied as input. Otherwise, this will be the newly created and rotated drawable. This procedure is affected by the following context setters: 'gimp-context-set-interpolation', 'gimp-context-set-transform-direction', 'gimp-context-set-transform-resize'.",
|
||||
"Michael Natterer <mitch@gimp.org>",
|
||||
"Michael Natterer",
|
||||
"2010",
|
||||
|
@ -1181,7 +1167,7 @@ register_item_transform_procs (GimpPDB *pdb)
|
|||
gimp_procedure_set_static_strings (procedure,
|
||||
"gimp-item-transform-scale",
|
||||
"Scale the specified item.",
|
||||
"This procedure scales the specified item. If a selection exists and the item is a drawable, the portion of the drawable which lies under the selection is cut from the drawable and made into a floating selection which is then scaled by the specified amount. The return value is the ID of the scaled item. If there was no selection or the item is not a drawable, this will be equal to the item ID supplied as input. Otherwise, this will be the newly created and scaled drawable. This procedure is affected by the following context setters: 'gimp-context-set-interpolation', 'gimp-context-set-transform-direction', 'gimp-context-set-transform-resize', 'gimp-context-set-transform-recursion'.",
|
||||
"This procedure scales the specified item. If a selection exists and the item is a drawable, the portion of the drawable which lies under the selection is cut from the drawable and made into a floating selection which is then scaled by the specified amount. The return value is the ID of the scaled item. If there was no selection or the item is not a drawable, this will be equal to the item ID supplied as input. Otherwise, this will be the newly created and scaled drawable. This procedure is affected by the following context setters: 'gimp-context-set-interpolation', 'gimp-context-set-transform-direction', 'gimp-context-set-transform-resize'.",
|
||||
"Michael Natterer <mitch@gimp.org>",
|
||||
"Michael Natterer",
|
||||
"2010",
|
||||
|
@ -1234,7 +1220,7 @@ register_item_transform_procs (GimpPDB *pdb)
|
|||
gimp_procedure_set_static_strings (procedure,
|
||||
"gimp-item-transform-shear",
|
||||
"Shear the specified item about its center by the specified magnitude.",
|
||||
"This procedure shears the specified item. If a selection exists and the item is a drawable, the portion of the drawable which lies under the selection is cut from the drawable and made into a floating selection which is then sheard by the specified amount. The return value is the ID of the sheard item. If there was no selection or the item is not a drawable, this will be equal to the item ID supplied as input. Otherwise, this will be the newly created and sheard drawable. The shear type parameter indicates whether the shear will be applied horizontally or vertically. The magnitude can be either positive or negative and indicates the extent (in pixels) to shear by. This procedure is affected by the following context setters: 'gimp-context-set-interpolation', 'gimp-context-set-transform-direction', 'gimp-context-set-transform-resize', 'gimp-context-set-transform-recursion'.",
|
||||
"This procedure shears the specified item. If a selection exists and the item is a drawable, the portion of the drawable which lies under the selection is cut from the drawable and made into a floating selection which is then sheard by the specified amount. The return value is the ID of the sheard item. If there was no selection or the item is not a drawable, this will be equal to the item ID supplied as input. Otherwise, this will be the newly created and sheard drawable. The shear type parameter indicates whether the shear will be applied horizontally or vertically. The magnitude can be either positive or negative and indicates the extent (in pixels) to shear by. This procedure is affected by the following context setters: 'gimp-context-set-interpolation', 'gimp-context-set-transform-direction', 'gimp-context-set-transform-resize'.",
|
||||
"Michael Natterer <mitch@gimp.org>",
|
||||
"Michael Natterer",
|
||||
"2010",
|
||||
|
@ -1278,7 +1264,7 @@ register_item_transform_procs (GimpPDB *pdb)
|
|||
gimp_procedure_set_static_strings (procedure,
|
||||
"gimp-item-transform-2d",
|
||||
"Transform the specified item in 2d.",
|
||||
"This procedure transforms the specified item. If a selection exists and the item is a drawable, the portion of the drawable which lies under the selection is cut from the drawable and made into a floating selection which is then transformed. The transformation is done by scaling the image by the x and y scale factors about the point (source_x, source_y), then rotating around the same point, then translating that point to the new position (dest_x, dest_y). The return value is the ID of the rotated drawable. If there was no selection or the item is not a drawable, this will be equal to the item ID supplied as input. Otherwise, this will be the newly created and transformed drawable. This procedure is affected by the following context setters: 'gimp-context-set-interpolation', 'gimp-context-set-transform-direction', 'gimp-context-set-transform-resize', 'gimp-context-set-transform-recursion'.",
|
||||
"This procedure transforms the specified item. If a selection exists and the item is a drawable, the portion of the drawable which lies under the selection is cut from the drawable and made into a floating selection which is then transformed. The transformation is done by scaling the image by the x and y scale factors about the point (source_x, source_y), then rotating around the same point, then translating that point to the new position (dest_x, dest_y). The return value is the ID of the rotated drawable. If there was no selection or the item is not a drawable, this will be equal to the item ID supplied as input. Otherwise, this will be the newly created and transformed drawable. This procedure is affected by the following context setters: 'gimp-context-set-interpolation', 'gimp-context-set-transform-direction', 'gimp-context-set-transform-resize'.",
|
||||
"Michael Natterer <mitch@gimp.org>",
|
||||
"Michael Natterer",
|
||||
"2010",
|
||||
|
@ -1349,7 +1335,7 @@ register_item_transform_procs (GimpPDB *pdb)
|
|||
gimp_procedure_set_static_strings (procedure,
|
||||
"gimp-item-transform-matrix",
|
||||
"Transform the specified item in 2d.",
|
||||
"This procedure transforms the specified item. If a selection exists and the item is a drawable, the portion of the drawable which lies under the selection is cut from the drawable and made into a floating selection which is then transformed. The transformation is done by assembling a 3x3 matrix from the coefficients passed. The return value is the ID of the transformed item. If there was no selection or the item is not a drawable, this will be equal to the item ID supplied as input. Otherwise, this will be the newly created and transformed drawable. This procedure is affected by the following context setters: 'gimp-context-set-interpolation', 'gimp-context-set-transform-direction', 'gimp-context-set-transform-resize', 'gimp-context-set-transform-recursion'.",
|
||||
"This procedure transforms the specified item. If a selection exists and the item is a drawable, the portion of the drawable which lies under the selection is cut from the drawable and made into a floating selection which is then transformed. The transformation is done by assembling a 3x3 matrix from the coefficients passed. The return value is the ID of the transformed item. If there was no selection or the item is not a drawable, this will be equal to the item ID supplied as input. Otherwise, this will be the newly created and transformed drawable. This procedure is affected by the following context setters: 'gimp-context-set-interpolation', 'gimp-context-set-transform-direction', 'gimp-context-set-transform-resize'.",
|
||||
"Michael Natterer <mitch@gimp.org>",
|
||||
"Michael Natterer",
|
||||
"2010",
|
||||
|
|
|
@ -176,7 +176,7 @@ perspective_invoker (GimpProcedure *procedure,
|
|||
if (! gimp_drawable_transform_affine (drawable, context,
|
||||
&matrix,
|
||||
GIMP_TRANSFORM_FORWARD,
|
||||
interpolation_type, 3,
|
||||
interpolation_type,
|
||||
FALSE, progress))
|
||||
{
|
||||
success = FALSE;
|
||||
|
@ -186,7 +186,7 @@ perspective_invoker (GimpProcedure *procedure,
|
|||
{
|
||||
gimp_item_transform (GIMP_ITEM (drawable), context, &matrix,
|
||||
GIMP_TRANSFORM_FORWARD,
|
||||
interpolation, 3,
|
||||
interpolation,
|
||||
FALSE, progress);
|
||||
}
|
||||
|
||||
|
@ -260,7 +260,7 @@ rotate_invoker (GimpProcedure *procedure,
|
|||
if (! gimp_drawable_transform_affine (drawable, context,
|
||||
&matrix,
|
||||
GIMP_TRANSFORM_FORWARD,
|
||||
interpolation_type, 3,
|
||||
interpolation_type,
|
||||
FALSE, progress))
|
||||
{
|
||||
success = FALSE;
|
||||
|
@ -270,7 +270,7 @@ rotate_invoker (GimpProcedure *procedure,
|
|||
{
|
||||
gimp_item_transform (GIMP_ITEM (drawable), context, &matrix,
|
||||
GIMP_TRANSFORM_FORWARD,
|
||||
interpolation, 3,
|
||||
interpolation,
|
||||
FALSE, progress);
|
||||
}
|
||||
|
||||
|
@ -351,7 +351,7 @@ scale_invoker (GimpProcedure *procedure,
|
|||
if (! gimp_drawable_transform_affine (drawable, context,
|
||||
&matrix,
|
||||
GIMP_TRANSFORM_FORWARD,
|
||||
interpolation_type, 3,
|
||||
interpolation_type,
|
||||
FALSE, progress))
|
||||
{
|
||||
success = FALSE;
|
||||
|
@ -361,7 +361,7 @@ scale_invoker (GimpProcedure *procedure,
|
|||
{
|
||||
gimp_item_transform (GIMP_ITEM (drawable), context, &matrix,
|
||||
GIMP_TRANSFORM_FORWARD,
|
||||
interpolation, 3,
|
||||
interpolation,
|
||||
FALSE, progress);
|
||||
}
|
||||
|
||||
|
@ -437,7 +437,7 @@ shear_invoker (GimpProcedure *procedure,
|
|||
if (! gimp_drawable_transform_affine (drawable, context,
|
||||
&matrix,
|
||||
GIMP_TRANSFORM_FORWARD,
|
||||
interpolation_type, 3,
|
||||
interpolation_type,
|
||||
FALSE, progress))
|
||||
{
|
||||
success = FALSE;
|
||||
|
@ -447,7 +447,7 @@ shear_invoker (GimpProcedure *procedure,
|
|||
{
|
||||
gimp_item_transform (GIMP_ITEM (drawable), context, &matrix,
|
||||
GIMP_TRANSFORM_FORWARD,
|
||||
interpolation, 3,
|
||||
interpolation,
|
||||
FALSE, progress);
|
||||
}
|
||||
|
||||
|
@ -527,7 +527,7 @@ transform_2d_invoker (GimpProcedure *procedure,
|
|||
{
|
||||
if (! gimp_drawable_transform_affine (drawable, context,
|
||||
&matrix, GIMP_TRANSFORM_FORWARD,
|
||||
interpolation_type, 3,
|
||||
interpolation_type,
|
||||
FALSE, progress))
|
||||
{
|
||||
success = FALSE;
|
||||
|
@ -537,7 +537,7 @@ transform_2d_invoker (GimpProcedure *procedure,
|
|||
{
|
||||
gimp_item_transform (GIMP_ITEM (drawable), context, &matrix,
|
||||
GIMP_TRANSFORM_FORWARD,
|
||||
interpolation, 3,
|
||||
interpolation,
|
||||
FALSE, progress);
|
||||
}
|
||||
|
||||
|
|
|
@ -143,7 +143,6 @@ gimp_text_layer_transform (GimpItem *item,
|
|||
GimpTransformDirection direction,
|
||||
GimpInterpolationType interpolation_type,
|
||||
gboolean supersample,
|
||||
gint recursion_level,
|
||||
GimpTransformResize clip_result,
|
||||
GimpProgress *progress)
|
||||
{
|
||||
|
|
|
@ -46,7 +46,6 @@ void gimp_text_layer_transform (GimpItem *item,
|
|||
GimpTransformDirection direction,
|
||||
GimpInterpolationType interpolation_type,
|
||||
gboolean supersample,
|
||||
gint recursion_level,
|
||||
GimpTransformResize clip_result,
|
||||
GimpProgress *progress);
|
||||
|
||||
|
|
|
@ -199,7 +199,6 @@ gimp_transform_options_class_init (GimpTransformOptionsClass *klass)
|
|||
static void
|
||||
gimp_transform_options_init (GimpTransformOptions *options)
|
||||
{
|
||||
options->recursion_level = 3;
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -40,7 +40,6 @@ struct _GimpTransformOptions
|
|||
GimpTransformType type;
|
||||
GimpTransformDirection direction;
|
||||
GimpInterpolationType interpolation;
|
||||
gint recursion_level;
|
||||
GimpTransformResize clip;
|
||||
gboolean show_preview;
|
||||
gdouble preview_opacity;
|
||||
|
|
|
@ -1284,7 +1284,6 @@ gimp_transform_tool_real_transform (GimpTransformTool *tr_tool,
|
|||
&tr_tool->transform,
|
||||
options->direction,
|
||||
options->interpolation,
|
||||
options->recursion_level,
|
||||
clip,
|
||||
progress);
|
||||
|
||||
|
@ -1309,7 +1308,6 @@ gimp_transform_tool_real_transform (GimpTransformTool *tr_tool,
|
|||
&tr_tool->transform,
|
||||
options->direction,
|
||||
options->interpolation,
|
||||
options->recursion_level,
|
||||
clip,
|
||||
new_offset_x,
|
||||
new_offset_y,
|
||||
|
@ -1328,7 +1326,6 @@ gimp_transform_tool_real_transform (GimpTransformTool *tr_tool,
|
|||
&tr_tool->transform,
|
||||
options->direction,
|
||||
options->interpolation,
|
||||
options->recursion_level,
|
||||
clip,
|
||||
progress);
|
||||
}
|
||||
|
|
|
@ -106,7 +106,6 @@ static void gimp_vectors_transform (GimpItem *item,
|
|||
const GimpMatrix3 *matrix,
|
||||
GimpTransformDirection direction,
|
||||
GimpInterpolationType interp_type,
|
||||
gint recursion_level,
|
||||
GimpTransformResize clip_result,
|
||||
GimpProgress *progress);
|
||||
static gboolean gimp_vectors_stroke (GimpItem *item,
|
||||
|
@ -511,7 +510,6 @@ gimp_vectors_transform (GimpItem *item,
|
|||
const GimpMatrix3 *matrix,
|
||||
GimpTransformDirection direction,
|
||||
GimpInterpolationType interpolation_type,
|
||||
gint recursion_level,
|
||||
GimpTransformResize clip_result,
|
||||
GimpProgress *progress)
|
||||
{
|
||||
|
|
|
@ -1940,13 +1940,9 @@ gimp_context_set_transform_resize (GimpTransformResize transform_resize)
|
|||
/**
|
||||
* gimp_context_get_transform_recursion:
|
||||
*
|
||||
* Get the transform supersampling recursion.
|
||||
* Deprecated: There is no replacement for this procedure.
|
||||
*
|
||||
* This procedure returns the transform supersampling recursion level.
|
||||
*
|
||||
* Returns: The transform recursion level.
|
||||
*
|
||||
* Since: GIMP 2.8
|
||||
* Returns: This returns always 3 and is meaningless.
|
||||
**/
|
||||
gint
|
||||
gimp_context_get_transform_recursion (void)
|
||||
|
@ -1969,22 +1965,11 @@ gimp_context_get_transform_recursion (void)
|
|||
|
||||
/**
|
||||
* gimp_context_set_transform_recursion:
|
||||
* @transform_recursion: The transform recursion level.
|
||||
* @transform_recursion: This parameter is ignored.
|
||||
*
|
||||
* Set the transform supersampling recursion.
|
||||
*
|
||||
* This procedure modifies the transform supersampling recursion level
|
||||
* setting. Whether or not a transformation does supersampling is
|
||||
* determined by the interplolation type. The recursion level defaults
|
||||
* to 3, which is a nice default value. This setting affects affects
|
||||
* the following procedures: gimp_item_transform_flip(),
|
||||
* gimp_item_transform_perspective(), gimp_item_transform_rotate(),
|
||||
* gimp_item_transform_scale(), gimp_item_transform_shear(),
|
||||
* gimp_item_transform_2d(), gimp_item_transform_matrix().
|
||||
* Deprecated: There is no replacement for this procedure.
|
||||
*
|
||||
* Returns: TRUE on success.
|
||||
*
|
||||
* Since: GIMP 2.8
|
||||
**/
|
||||
gboolean
|
||||
gimp_context_set_transform_recursion (gint transform_recursion)
|
||||
|
|
|
@ -92,7 +92,9 @@ GimpTransformDirection gimp_context_get_transform_direction (void);
|
|||
gboolean gimp_context_set_transform_direction (GimpTransformDirection transform_direction);
|
||||
GimpTransformResize gimp_context_get_transform_resize (void);
|
||||
gboolean gimp_context_set_transform_resize (GimpTransformResize transform_resize);
|
||||
GIMP_DEPRECATED
|
||||
gint gimp_context_get_transform_recursion (void);
|
||||
GIMP_DEPRECATED
|
||||
gboolean gimp_context_set_transform_recursion (gint transform_recursion);
|
||||
gdouble gimp_context_get_ink_size (void);
|
||||
gboolean gimp_context_set_ink_size (gdouble size);
|
||||
|
|
|
@ -85,8 +85,8 @@ gimp_drawable_transform_flip_simple (gint32 drawable_ID,
|
|||
* @y1: vert. coord. of other end of axis.
|
||||
* @transform_direction: Direction of transformation.
|
||||
* @interpolation: Type of interpolation.
|
||||
* @supersample: This parameter is ignored, supersampling is performed based on the interpolation type.
|
||||
* @recursion_level: Maximum recursion level used for supersampling (3 is a nice value).
|
||||
* @supersample: This parameter is ignored.
|
||||
* @recursion_level: This parameter is ignored.
|
||||
* @clip_result: Whether to clip results.
|
||||
*
|
||||
* Deprecated: Use gimp_item_transform_flip() instead.
|
||||
|
@ -194,8 +194,8 @@ gimp_drawable_transform_flip_default (gint32 drawable_ID,
|
|||
* @y3: The new y coordinate of lower-right corner of original bounding box.
|
||||
* @transform_direction: Direction of transformation.
|
||||
* @interpolation: Type of interpolation.
|
||||
* @supersample: This parameter is ignored, supersampling is performed based on the interpolation type.
|
||||
* @recursion_level: Maximum recursion level used for supersampling (3 is a nice value).
|
||||
* @supersample: This parameter is ignored.
|
||||
* @recursion_level: This parameter is ignored.
|
||||
* @clip_result: How to clip results.
|
||||
*
|
||||
* Deprecated: Use gimp_item_transform_perspective() instead.
|
||||
|
@ -364,8 +364,8 @@ gimp_drawable_transform_rotate_simple (gint32 drawable_ID,
|
|||
* @center_y: The vert. coordinate of the center of rotation.
|
||||
* @transform_direction: Direction of transformation.
|
||||
* @interpolation: Type of interpolation.
|
||||
* @supersample: This parameter is ignored, supersampling is performed based on the interpolation type.
|
||||
* @recursion_level: Maximum recursion level used for supersampling (3 is a nice value).
|
||||
* @supersample: This parameter is ignored.
|
||||
* @recursion_level: This parameter is ignored.
|
||||
* @clip_result: How to clip results.
|
||||
*
|
||||
* Deprecated: Use gimp_item_transform_rotate() instead.
|
||||
|
@ -469,8 +469,8 @@ gimp_drawable_transform_rotate_default (gint32 drawable_ID,
|
|||
* @y1: The new y coordinate of the lower-right corner of the scaled region.
|
||||
* @transform_direction: Direction of transformation.
|
||||
* @interpolation: Type of interpolation.
|
||||
* @supersample: This parameter is ignored, supersampling is performed based on the interpolation type.
|
||||
* @recursion_level: Maximum recursion level used for supersampling (3 is a nice value).
|
||||
* @supersample: This parameter is ignored.
|
||||
* @recursion_level: This parameter is ignored.
|
||||
* @clip_result: How to clip results.
|
||||
*
|
||||
* Deprecated: Use gimp_item_transform_scale() instead.
|
||||
|
@ -572,8 +572,8 @@ gimp_drawable_transform_scale_default (gint32 drawable_ID,
|
|||
* @magnitude: The magnitude of the shear.
|
||||
* @transform_direction: Direction of transformation.
|
||||
* @interpolation: Type of interpolation.
|
||||
* @supersample: This parameter is ignored, supersampling is performed based on the interpolation type.
|
||||
* @recursion_level: Maximum recursion level used for supersampling (3 is a nice value).
|
||||
* @supersample: This parameter is ignored.
|
||||
* @recursion_level: This parameter is ignored.
|
||||
* @clip_result: How to clip results.
|
||||
*
|
||||
* Deprecated: Use gimp_item_transform_shear() instead.
|
||||
|
@ -670,8 +670,8 @@ gimp_drawable_transform_shear_default (gint32 drawable_ID,
|
|||
* @dest_y: Y coordinate of where the center goes.
|
||||
* @transform_direction: Direction of transformation.
|
||||
* @interpolation: Type of interpolation.
|
||||
* @supersample: This parameter is ignored, supersampling is performed based on the interpolation type.
|
||||
* @recursion_level: Maximum recursion level used for supersampling (3 is a nice value).
|
||||
* @supersample: This parameter is ignored.
|
||||
* @recursion_level: This parameter is ignored.
|
||||
* @clip_result: How to clip results.
|
||||
*
|
||||
* Deprecated: Use gimp_item_transform_2d() instead.
|
||||
|
@ -795,8 +795,8 @@ gimp_drawable_transform_2d_default (gint32 drawable_ID,
|
|||
* @coeff_2_2: coefficient (2,2) of the transformation matrix.
|
||||
* @transform_direction: Direction of transformation.
|
||||
* @interpolation: Type of interpolation.
|
||||
* @supersample: This parameter is ignored, supersampling is performed based on the interpolation type.
|
||||
* @recursion_level: Maximum recursion level used for supersampling (3 is a nice value).
|
||||
* @supersample: This parameter is ignored.
|
||||
* @recursion_level: This parameter is ignored.
|
||||
* @clip_result: How to clip results.
|
||||
*
|
||||
* Deprecated: Use gimp_item_transform_matrix() instead.
|
||||
|
|
|
@ -106,8 +106,7 @@ gimp_item_transform_flip_simple (gint32 item_ID,
|
|||
* drawable. This procedure is affected by the following context
|
||||
* setters: gimp_context_set_interpolation(),
|
||||
* gimp_context_set_transform_direction(),
|
||||
* gimp_context_set_transform_resize(),
|
||||
* gimp_context_set_transform_recursion().
|
||||
* gimp_context_set_transform_resize().
|
||||
*
|
||||
* Returns: The flipped item.
|
||||
*
|
||||
|
@ -173,8 +172,7 @@ gimp_item_transform_flip (gint32 item_ID,
|
|||
* projected via a perspective transform. This procedure is affected by
|
||||
* the following context setters: gimp_context_set_interpolation(),
|
||||
* gimp_context_set_transform_direction(),
|
||||
* gimp_context_set_transform_resize(),
|
||||
* gimp_context_set_transform_recursion().
|
||||
* gimp_context_set_transform_resize().
|
||||
*
|
||||
* Returns: The newly mapped item.
|
||||
*
|
||||
|
@ -290,8 +288,7 @@ gimp_item_transform_rotate_simple (gint32 item_ID,
|
|||
* rotated drawable. This procedure is affected by the following
|
||||
* context setters: gimp_context_set_interpolation(),
|
||||
* gimp_context_set_transform_direction(),
|
||||
* gimp_context_set_transform_resize(),
|
||||
* gimp_context_set_transform_recursion().
|
||||
* gimp_context_set_transform_resize().
|
||||
*
|
||||
* Returns: The rotated item.
|
||||
*
|
||||
|
@ -345,8 +342,7 @@ gimp_item_transform_rotate (gint32 item_ID,
|
|||
* drawable. This procedure is affected by the following context
|
||||
* setters: gimp_context_set_interpolation(),
|
||||
* gimp_context_set_transform_direction(),
|
||||
* gimp_context_set_transform_resize(),
|
||||
* gimp_context_set_transform_recursion().
|
||||
* gimp_context_set_transform_resize().
|
||||
*
|
||||
* Returns: The scaled item.
|
||||
*
|
||||
|
@ -402,8 +398,7 @@ gimp_item_transform_scale (gint32 item_ID,
|
|||
* by. This procedure is affected by the following context setters:
|
||||
* gimp_context_set_interpolation(),
|
||||
* gimp_context_set_transform_direction(),
|
||||
* gimp_context_set_transform_resize(),
|
||||
* gimp_context_set_transform_recursion().
|
||||
* gimp_context_set_transform_resize().
|
||||
*
|
||||
* Returns: The sheared item.
|
||||
*
|
||||
|
@ -459,8 +454,7 @@ gimp_item_transform_shear (gint32 item_ID,
|
|||
* and transformed drawable. This procedure is affected by the
|
||||
* following context setters: gimp_context_set_interpolation(),
|
||||
* gimp_context_set_transform_direction(),
|
||||
* gimp_context_set_transform_resize(),
|
||||
* gimp_context_set_transform_recursion().
|
||||
* gimp_context_set_transform_resize().
|
||||
*
|
||||
* Returns: The transformed item.
|
||||
*
|
||||
|
@ -526,8 +520,7 @@ gimp_item_transform_2d (gint32 item_ID,
|
|||
* and transformed drawable. This procedure is affected by the
|
||||
* following context setters: gimp_context_set_interpolation(),
|
||||
* gimp_context_set_transform_direction(),
|
||||
* gimp_context_set_transform_resize(),
|
||||
* gimp_context_set_transform_recursion().
|
||||
* gimp_context_set_transform_resize().
|
||||
*
|
||||
* Returns: The transformed item.
|
||||
*
|
||||
|
|
|
@ -1656,59 +1656,33 @@ CODE
|
|||
}
|
||||
|
||||
sub context_get_transform_recursion {
|
||||
$blurb = 'Get the transform supersampling recursion.';
|
||||
|
||||
$help = <<'HELP';
|
||||
This procedure returns the transform supersampling recursion level.
|
||||
HELP
|
||||
|
||||
&mitch_pdb_misc('2010', '2.8');
|
||||
&std_pdb_deprecated();
|
||||
|
||||
@outargs = (
|
||||
{ name => 'transform_recursion', type => '1 <= int32',
|
||||
desc => 'The transform recursion level' }
|
||||
desc => 'This returns always 3 and is meaningless' }
|
||||
);
|
||||
|
||||
%invoke = (
|
||||
code => <<'CODE'
|
||||
{
|
||||
g_object_get (context,
|
||||
"transform-recursion", &transform_recursion,
|
||||
NULL);
|
||||
transform_recursion = 3;
|
||||
}
|
||||
CODE
|
||||
);
|
||||
}
|
||||
|
||||
sub context_set_transform_recursion {
|
||||
$blurb = 'Set the transform supersampling recursion.';
|
||||
|
||||
$help = <<'HELP';
|
||||
This procedure modifies the transform supersampling recursion level
|
||||
setting. Whether or not a transformation does supersampling is
|
||||
determined by the interplolation type. The recursion level defaults
|
||||
to 3, which is a nice default value.
|
||||
|
||||
This setting affects affects the following procedures:
|
||||
gimp_item_transform_flip(), gimp_item_transform_perspective(),
|
||||
gimp_item_transform_rotate(), gimp_item_transform_scale(),
|
||||
gimp_item_transform_shear(), gimp_item_transform_2d(),
|
||||
gimp_item_transform_matrix().
|
||||
HELP
|
||||
|
||||
&mitch_pdb_misc('2010', '2.8');
|
||||
&std_pdb_deprecated();
|
||||
|
||||
@inargs = (
|
||||
{ name => 'transform_recursion', type => '1 <= int32',
|
||||
desc => 'The transform recursion level' }
|
||||
{ name => 'transform_recursion', type => '1 <= int32', dead => 1,
|
||||
desc => 'This parameter is ignored' }
|
||||
);
|
||||
|
||||
%invoke = (
|
||||
code => <<'CODE'
|
||||
{
|
||||
g_object_set (context,
|
||||
"transform-recursion", transform_recursion,
|
||||
NULL);
|
||||
}
|
||||
CODE
|
||||
);
|
||||
|
|
|
@ -64,7 +64,7 @@ $assemble_matrix
|
|||
{
|
||||
if (! gimp_drawable_transform_affine (drawable, context,
|
||||
&matrix, transform_direction,
|
||||
interpolation, recursion_level,
|
||||
interpolation,
|
||||
clip_result, progress))
|
||||
{
|
||||
success = FALSE;
|
||||
|
@ -74,7 +74,7 @@ $assemble_matrix
|
|||
{
|
||||
gimp_item_transform (GIMP_ITEM (drawable), context, &matrix,
|
||||
transform_direction,
|
||||
interpolation, recursion_level,
|
||||
interpolation,
|
||||
clip_result, progress);
|
||||
}
|
||||
|
||||
|
@ -131,7 +131,7 @@ $assemble_matrix
|
|||
{
|
||||
if (! gimp_drawable_transform_affine (drawable, context,
|
||||
&matrix, GIMP_TRANSFORM_FORWARD,
|
||||
interpolation_type, 3,
|
||||
interpolation_type,
|
||||
clip_result, progress))
|
||||
{
|
||||
success = FALSE;
|
||||
|
@ -141,7 +141,7 @@ $assemble_matrix
|
|||
{
|
||||
gimp_item_transform (GIMP_ITEM (drawable), context, &matrix,
|
||||
GIMP_TRANSFORM_FORWARD,
|
||||
interpolation_type, 3,
|
||||
interpolation_type,
|
||||
clip_result, progress);
|
||||
}
|
||||
|
||||
|
@ -235,9 +235,9 @@ sub drawable_transform_flip {
|
|||
{ name => 'interpolation', type => 'enum GimpInterpolationType',
|
||||
desc => 'Type of interpolation' },
|
||||
{ name => 'supersample', type => 'boolean', dead => 1,
|
||||
desc => 'This parameter is ignored, supersampling is performed based on the interpolation type' },
|
||||
{ name => 'recursion_level', type => '1 <= int32',
|
||||
desc => 'Maximum recursion level used for supersampling (3 is a nice value)' },
|
||||
desc => 'This parameter is ignored' },
|
||||
{ name => 'recursion_level', type => '1 <= int32', dead => 1,
|
||||
desc => 'This parameter is ignored' },
|
||||
{ name => 'clip_result', type => 'boolean',
|
||||
desc => 'Whether to clip results' }
|
||||
);
|
||||
|
@ -325,9 +325,9 @@ sub drawable_transform_perspective {
|
|||
{ name => 'interpolation', type => 'enum GimpInterpolationType',
|
||||
desc => 'Type of interpolation' },
|
||||
{ name => 'supersample', type => 'boolean', dead => 1,
|
||||
desc => 'This parameter is ignored, supersampling is performed based on the interpolation type' },
|
||||
{ name => 'recursion_level', type => '1 <= int32',
|
||||
desc => 'Maximum recursion level used for supersampling (3 is a nice value)' },
|
||||
desc => 'This parameter is ignored' },
|
||||
{ name => 'recursion_level', type => '1 <= int32', dead => 1,
|
||||
desc => 'This parameter is ignored' },
|
||||
{ name => 'clip_result', type => 'enum GimpTransformResize',
|
||||
desc => 'How to clip results' }
|
||||
);
|
||||
|
@ -483,9 +483,9 @@ sub drawable_transform_rotate {
|
|||
{ name => 'interpolation', type => 'enum GimpInterpolationType',
|
||||
desc => 'Type of interpolation' },
|
||||
{ name => 'supersample', type => 'boolean', dead => 1,
|
||||
desc => 'This parameter is ignored, supersampling is performed based on the interpolation type' },
|
||||
{ name => 'recursion_level', type => '1 <= int32',
|
||||
desc => 'Maximum recursion level used for supersampling (3 is a nice value)' },
|
||||
desc => 'This parameter is ignored' },
|
||||
{ name => 'recursion_level', type => '1 <= int32', dead => 1,
|
||||
desc => 'This parameter is ignored' },
|
||||
{ name => 'clip_result', type => 'enum GimpTransformResize',
|
||||
desc => 'How to clip results' }
|
||||
);
|
||||
|
@ -569,9 +569,9 @@ sub drawable_transform_scale {
|
|||
{ name => 'interpolation', type => 'enum GimpInterpolationType',
|
||||
desc => 'Type of interpolation' },
|
||||
{ name => 'supersample', type => 'boolean', dead => 1,
|
||||
desc => 'This parameter is ignored, supersampling is performed based on the interpolation type' },
|
||||
{ name => 'recursion_level', type => '1 <= int32',
|
||||
desc => 'Maximum recursion level used for supersampling (3 is a nice value)' },
|
||||
desc => 'This parameter is ignored' },
|
||||
{ name => 'recursion_level', type => '1 <= int32', dead => 1,
|
||||
desc => 'This parameter is ignored' },
|
||||
{ name => 'clip_result', type => 'enum GimpTransformResize',
|
||||
desc => 'How to clip results' }
|
||||
);
|
||||
|
@ -646,9 +646,9 @@ sub drawable_transform_shear {
|
|||
{ name => 'interpolation', type => 'enum GimpInterpolationType',
|
||||
desc => 'Type of interpolation' },
|
||||
{ name => 'supersample', type => 'boolean', dead => 1,
|
||||
desc => 'This parameter is ignored, supersampling is performed based on the interpolation type' },
|
||||
{ name => 'recursion_level', type => '1 <= int32',
|
||||
desc => 'Maximum recursion level used for supersampling (3 is a nice value)' },
|
||||
desc => 'This parameter is ignored' },
|
||||
{ name => 'recursion_level', type => '1 <= int32', dead => 1,
|
||||
desc => 'This parameter is ignored' },
|
||||
{ name => 'clip_result', type => 'enum GimpTransformResize',
|
||||
desc => 'How to clip results' }
|
||||
);
|
||||
|
@ -725,9 +725,9 @@ sub drawable_transform_2d {
|
|||
{ name => 'interpolation', type => 'enum GimpInterpolationType',
|
||||
desc => 'Type of interpolation' },
|
||||
{ name => 'supersample', type => 'boolean', dead => 1,
|
||||
desc => 'This parameter is ignored, supersampling is performed based on the interpolation type' },
|
||||
{ name => 'recursion_level', type => '1 <= int32',
|
||||
desc => 'Maximum recursion level used for supersampling (3 is a nice value)' },
|
||||
desc => 'This parameter is ignored' },
|
||||
{ name => 'recursion_level', type => '1 <= int32', dead => 1,
|
||||
desc => 'This parameter is ignored' },
|
||||
{ name => 'clip_result', type => 'enum GimpTransformResize',
|
||||
desc => 'How to clip results' }
|
||||
);
|
||||
|
@ -819,9 +819,9 @@ sub drawable_transform_matrix {
|
|||
{ name => 'interpolation', type => 'enum GimpInterpolationType',
|
||||
desc => 'Type of interpolation' },
|
||||
{ name => 'supersample', type => 'boolean', dead => 1,
|
||||
desc => 'This parameter is ignored, supersampling is performed based on the interpolation type' },
|
||||
{ name => 'recursion_level', type => '1 <= int32',
|
||||
desc => 'Maximum recursion level used for supersampling (3 is a nice value)' },
|
||||
desc => 'This parameter is ignored' },
|
||||
{ name => 'recursion_level', type => '1 <= int32', dead => 1,
|
||||
desc => 'This parameter is ignored' },
|
||||
{ name => 'clip_result', type => 'enum GimpTransformResize',
|
||||
desc => 'How to clip results' }
|
||||
);
|
||||
|
|
|
@ -66,7 +66,6 @@ $assemble_matrix
|
|||
context, &matrix,
|
||||
pdb_context->transform_direction,
|
||||
pdb_context->interpolation,
|
||||
pdb_context->transform_recursion,
|
||||
pdb_context->transform_resize,
|
||||
progress);
|
||||
|
||||
|
@ -80,7 +79,6 @@ $assemble_matrix
|
|||
gimp_item_transform (item, context, &matrix,
|
||||
pdb_context->transform_direction,
|
||||
pdb_context->interpolation,
|
||||
pdb_context->transform_recursion,
|
||||
pdb_context->transform_resize,
|
||||
progress);
|
||||
}
|
||||
|
@ -201,7 +199,7 @@ Otherwise, this will be the newly created and flipped drawable.
|
|||
|
||||
This procedure is affected by the following context setters:
|
||||
gimp_context_set_interpolation(), gimp_context_set_transform_direction(),
|
||||
gimp_context_set_transform_resize(), gimp_context_set_transform_recursion().
|
||||
gimp_context_set_transform_resize().
|
||||
HELP
|
||||
|
||||
&mitch_pdb_misc('2010', '2.8');
|
||||
|
@ -256,7 +254,7 @@ have been projected via a perspective transform.
|
|||
|
||||
This procedure is affected by the following context setters:
|
||||
gimp_context_set_interpolation(), gimp_context_set_transform_direction(),
|
||||
gimp_context_set_transform_resize(), gimp_context_set_transform_recursion().
|
||||
gimp_context_set_transform_resize().
|
||||
HELP
|
||||
|
||||
&mitch_pdb_misc('2010', '2.8');
|
||||
|
@ -413,7 +411,7 @@ input. Otherwise, this will be the newly created and rotated drawable.
|
|||
|
||||
This procedure is affected by the following context setters:
|
||||
gimp_context_set_interpolation(), gimp_context_set_transform_direction(),
|
||||
gimp_context_set_transform_resize(), gimp_context_set_transform_recursion().
|
||||
gimp_context_set_transform_resize().
|
||||
HELP
|
||||
|
||||
&mitch_pdb_misc('2010', '2.8');
|
||||
|
@ -462,7 +460,7 @@ input. Otherwise, this will be the newly created and scaled drawable.
|
|||
|
||||
This procedure is affected by the following context setters:
|
||||
gimp_context_set_interpolation(), gimp_context_set_transform_direction(),
|
||||
gimp_context_set_transform_resize(), gimp_context_set_transform_recursion().
|
||||
gimp_context_set_transform_resize().
|
||||
HELP
|
||||
|
||||
&mitch_pdb_misc('2010', '2.8');
|
||||
|
@ -517,7 +515,7 @@ positive or negative and indicates the extent (in pixels) to shear by.
|
|||
|
||||
This procedure is affected by the following context setters:
|
||||
gimp_context_set_interpolation(), gimp_context_set_transform_direction(),
|
||||
gimp_context_set_transform_resize(), gimp_context_set_transform_recursion().
|
||||
gimp_context_set_transform_resize().
|
||||
HELP
|
||||
|
||||
&mitch_pdb_misc('2010', '2.8');
|
||||
|
@ -564,7 +562,7 @@ and transformed drawable.
|
|||
|
||||
This procedure is affected by the following context setters:
|
||||
gimp_context_set_interpolation(), gimp_context_set_transform_direction(),
|
||||
gimp_context_set_transform_resize(), gimp_context_set_transform_recursion().
|
||||
gimp_context_set_transform_resize().
|
||||
HELP
|
||||
|
||||
&mitch_pdb_misc('2010', '2.8');
|
||||
|
@ -619,7 +617,7 @@ drawable.
|
|||
|
||||
This procedure is affected by the following context setters:
|
||||
gimp_context_set_interpolation(), gimp_context_set_transform_direction(),
|
||||
gimp_context_set_transform_resize(), gimp_context_set_transform_recursion().
|
||||
gimp_context_set_transform_resize().
|
||||
HELP
|
||||
|
||||
&mitch_pdb_misc('2010', '2.8');
|
||||
|
|
|
@ -148,7 +148,7 @@ sub perspective {
|
|||
if (! gimp_drawable_transform_affine (drawable, context,
|
||||
&matrix,
|
||||
GIMP_TRANSFORM_FORWARD,
|
||||
interpolation_type, 3,
|
||||
interpolation_type,
|
||||
FALSE, progress))
|
||||
{
|
||||
success = FALSE;
|
||||
|
@ -158,7 +158,7 @@ sub perspective {
|
|||
{
|
||||
gimp_item_transform (GIMP_ITEM (drawable), context, &matrix,
|
||||
GIMP_TRANSFORM_FORWARD,
|
||||
interpolation, 3,
|
||||
interpolation,
|
||||
FALSE, progress);
|
||||
}
|
||||
|
||||
|
@ -226,7 +226,7 @@ sub rotate {
|
|||
if (! gimp_drawable_transform_affine (drawable, context,
|
||||
&matrix,
|
||||
GIMP_TRANSFORM_FORWARD,
|
||||
interpolation_type, 3,
|
||||
interpolation_type,
|
||||
FALSE, progress))
|
||||
{
|
||||
success = FALSE;
|
||||
|
@ -236,7 +236,7 @@ sub rotate {
|
|||
{
|
||||
gimp_item_transform (GIMP_ITEM (drawable), context, &matrix,
|
||||
GIMP_TRANSFORM_FORWARD,
|
||||
interpolation, 3,
|
||||
interpolation,
|
||||
FALSE, progress);
|
||||
}
|
||||
|
||||
|
@ -315,7 +315,7 @@ sub scale {
|
|||
if (! gimp_drawable_transform_affine (drawable, context,
|
||||
&matrix,
|
||||
GIMP_TRANSFORM_FORWARD,
|
||||
interpolation_type, 3,
|
||||
interpolation_type,
|
||||
FALSE, progress))
|
||||
{
|
||||
success = FALSE;
|
||||
|
@ -325,7 +325,7 @@ sub scale {
|
|||
{
|
||||
gimp_item_transform (GIMP_ITEM (drawable), context, &matrix,
|
||||
GIMP_TRANSFORM_FORWARD,
|
||||
interpolation, 3,
|
||||
interpolation,
|
||||
FALSE, progress);
|
||||
}
|
||||
|
||||
|
@ -396,7 +396,7 @@ sub shear {
|
|||
if (! gimp_drawable_transform_affine (drawable, context,
|
||||
&matrix,
|
||||
GIMP_TRANSFORM_FORWARD,
|
||||
interpolation_type, 3,
|
||||
interpolation_type,
|
||||
FALSE, progress))
|
||||
{
|
||||
success = FALSE;
|
||||
|
@ -406,7 +406,7 @@ sub shear {
|
|||
{
|
||||
gimp_item_transform (GIMP_ITEM (drawable), context, &matrix,
|
||||
GIMP_TRANSFORM_FORWARD,
|
||||
interpolation, 3,
|
||||
interpolation,
|
||||
FALSE, progress);
|
||||
}
|
||||
|
||||
|
@ -480,7 +480,7 @@ sub transform_2d {
|
|||
{
|
||||
if (! gimp_drawable_transform_affine (drawable, context,
|
||||
&matrix, GIMP_TRANSFORM_FORWARD,
|
||||
interpolation_type, 3,
|
||||
interpolation_type,
|
||||
FALSE, progress))
|
||||
{
|
||||
success = FALSE;
|
||||
|
@ -490,7 +490,7 @@ sub transform_2d {
|
|||
{
|
||||
gimp_item_transform (GIMP_ITEM (drawable), context, &matrix,
|
||||
GIMP_TRANSFORM_FORWARD,
|
||||
interpolation, 3,
|
||||
interpolation,
|
||||
FALSE, progress);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue