Commit 8ba89c77 authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer

deprecated all functions.

2004-11-02  Michael Natterer  <mitch@gimp.org>

	* tools/pdbgen/pdb/transform_tools.pdb: deprecated all functions.

	* app/pdb/transform_tools_cmds.c
	* libgimp/gimptransformtools_pdb.[ch]: regenerated.

	* plug-ins/common/tiff.c
	* plug-ins/script-fu/scripts/3dTruchet.scm
	* plug-ins/script-fu/scripts/coolmetal-logo.scm
	* plug-ins/script-fu/scripts/image-structure.scm
	* plug-ins/script-fu/scripts/perspective-shadow.scm
	* plug-ins/script-fu/scripts/text-circle.scm
	* plug-ins/script-fu/scripts/truchet.scm: use the new transform API.
parent 2fef83ba
2004-11-02 Michael Natterer <mitch@gimp.org>
* tools/pdbgen/pdb/transform_tools.pdb: deprecated all functions.
* app/pdb/transform_tools_cmds.c
* libgimp/gimptransformtools_pdb.[ch]: regenerated.
* plug-ins/common/tiff.c
* plug-ins/script-fu/scripts/3dTruchet.scm
* plug-ins/script-fu/scripts/coolmetal-logo.scm
* plug-ins/script-fu/scripts/image-structure.scm
* plug-ins/script-fu/scripts/perspective-shadow.scm
* plug-ins/script-fu/scripts/text-circle.scm
* plug-ins/script-fu/scripts/truchet.scm: use the new transform API.
2004-11-02 Michael Natterer <mitch@gimp.org>
* tools/pdbgen/pdb/drawable_transform.pdb: added _defaults()
......
......@@ -122,12 +122,12 @@ static ProcArg flip_outargs[] =
static ProcRecord flip_proc =
{
"gimp_flip",
"Flip the specified drawable about its center either vertically or horizontally.",
"This tool flips the specified drawable if no selection exists. If a selection exists, the portion of the drawable which lies under the selection is cut from the drawable and made into a floating selection which is then flipd by the specified amount. The return value is the ID of the flipped drawable. If there was no selection, this will be equal to the drawable ID supplied as input. Otherwise, this will be the newly created and flipped drawable. The flip type parameter indicates whether the flip will be applied horizontally or vertically.",
"Spencer Kimball & Peter Mattis",
"Spencer Kimball & Peter Mattis",
"1995-1996",
NULL,
"This procedure is deprecated! Use 'gimp_drawable_transform_flip_simple' instead.",
"This procedure is deprecated! Use 'gimp_drawable_transform_flip_simple' instead.",
"",
"",
"",
"gimp_drawable_transform_flip_simple",
GIMP_INTERNAL,
2,
flip_inargs,
......@@ -282,13 +282,12 @@ static ProcArg perspective_outargs[] =
static ProcRecord perspective_proc =
{
"gimp_perspective",
"Perform a possibly non-affine transformation on the specified drawable.",
"This tool performs a possibly non-affine transformation on the specified drawable by allowing the corners of the original bounding box to be arbitrarily remapped to any values. The specified drawable is remapped if no selection exists. However, if a selection exists, 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 interpolation parameter can be set to TRUE to indicate that either linear or cubic interpolation should be used to smooth the resulting remapped drawable. The return value is the ID of the remapped drawable. If there was no selection, this will be equal to the drawable 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 drawable will appear to have been projected via a perspective transform.",
"Spencer Kimball & Peter Mattis",
"Spencer Kimball & Peter Mattis",
"1995-1996",
NULL,
"This procedure is deprecated! Use 'gimp_drawable_transform_perspective_defaults' instead.",
"This procedure is deprecated! Use 'gimp_drawable_transform_perspective_defaults' instead.",
"",
"",
"",
"gimp_drawable_transform_perspective_defaults",
GIMP_INTERNAL,
10,
perspective_inargs,
......@@ -390,12 +389,12 @@ static ProcArg rotate_outargs[] =
static ProcRecord rotate_proc =
{
"gimp_rotate",
"Rotate the specified drawable about its center through the specified angle.",
"This tool rotates the specified drawable if no selection exists. If a selection exists, 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 interpolation parameter can be set to TRUE to indicate that either linear or cubic interpolation should be used to smooth the resulting rotated drawable. The return value is the ID of the rotated drawable. If there was no selection, this will be equal to the drawable ID supplied as input. Otherwise, this will be the newly created and rotated drawable.",
"Spencer Kimball & Peter Mattis",
"Spencer Kimball & Peter Mattis",
"1995-1996",
NULL,
"This procedure is deprecated! Use 'gimp_drawable_transform_rotate_defaults' instead.",
"This procedure is deprecated! Use 'gimp_drawable_transform_rotate_defaults' instead.",
"",
"",
"",
"gimp_drawable_transform_rotate_defaults",
GIMP_INTERNAL,
3,
rotate_inargs,
......@@ -524,12 +523,12 @@ static ProcArg scale_outargs[] =
static ProcRecord scale_proc =
{
"gimp_scale",
"Scale the specified drawable.",
"This tool scales the specified drawable if no selection exists. If a selection exists, 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 interpolation parameter can be set to TRUE to indicate that either linear or cubic interpolation should be used to smooth the resulting scaled drawable. The return value is the ID of the scaled drawable. If there was no selection, this will be equal to the drawable ID supplied as input. Otherwise, this will be the newly created and scaled drawable.",
"Spencer Kimball & Peter Mattis",
"Spencer Kimball & Peter Mattis",
"1995-1996",
NULL,
"This procedure is deprecated! Use 'gimp_drawable_transform_scale_defaults' instead.",
"This procedure is deprecated! Use 'gimp_drawable_transform_scale_defaults' instead.",
"",
"",
"",
"gimp_drawable_transform_scale_defaults",
GIMP_INTERNAL,
6,
scale_inargs,
......@@ -642,12 +641,12 @@ static ProcArg shear_outargs[] =
static ProcRecord shear_proc =
{
"gimp_shear",
"Shear the specified drawable about its center by the specified magnitude.",
"This tool shears the specified drawable if no selection exists. If a selection exists, 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 interpolation parameter can be set to TRUE to indicate that either linear or cubic interpolation should be used to smooth the resulting sheared drawable. The return value is the ID of the sheard drawable. If there was no selection, this will be equal to the drawable 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.",
"Spencer Kimball & Peter Mattis",
"Spencer Kimball & Peter Mattis",
"1995-1996",
NULL,
"This procedure is deprecated! Use 'gimp_drawable_transform_shear_defaults' instead.",
"This procedure is deprecated! Use 'gimp_drawable_transform_shear_defaults' instead.",
"",
"",
"",
"gimp_drawable_transform_shear_defaults",
GIMP_INTERNAL,
4,
shear_inargs,
......@@ -799,12 +798,12 @@ static ProcArg transform_2d_outargs[] =
static ProcRecord transform_2d_proc =
{
"gimp_transform_2d",
"Transform the specified drawable in 2d.",
"This tool transforms the specified drawable if no selection exists. If a selection exists, 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 interpolation parameter can be set to TRUE to indicate that either linear or cubic interpolation should be used to smooth the resulting drawable. 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, this will be equal to the drawable ID supplied as input. Otherwise, this will be the newly created and transformed drawable.",
"Spencer Kimball & Peter Mattis",
"Spencer Kimball & Peter Mattis",
"1995-1996",
NULL,
"This procedure is deprecated! Use 'gimp_drawable_transform_2d_defaults' instead.",
"This procedure is deprecated! Use 'gimp_drawable_transform_2d_defaults' instead.",
"",
"",
"",
"gimp_drawable_transform_2d_defaults",
GIMP_INTERNAL,
9,
transform_2d_inargs,
......
......@@ -30,18 +30,8 @@
* @drawable_ID: The affected drawable.
* @flip_type: Type of flip.
*
* Flip the specified drawable about its center either vertically or
* horizontally.
*
* This tool flips the specified drawable if no selection exists. If a
* selection exists, the portion of the drawable which lies under the
* selection is cut from the drawable and made into a floating
* selection which is then flipd by the specified amount. The return
* value is the ID of the flipped drawable. If there was no selection,
* this will be equal to the drawable ID supplied as input. Otherwise,
* this will be the newly created and flipped drawable. The flip type
* parameter indicates whether the flip will be applied horizontally or
* vertically.
* This procedure is deprecated! Use
* gimp_drawable_transform_flip_simple() instead.
*
* Returns: The flipped drawable.
*/
......@@ -80,27 +70,8 @@ gimp_flip (gint32 drawable_ID,
* @x3: The new x coordinate of lower-right corner of original bounding box.
* @y3: The new y coordinate of lower-right corner of original bounding box.
*
* Perform a possibly non-affine transformation on the specified
* drawable.
*
* This tool performs a possibly non-affine transformation on the
* specified drawable by allowing the corners of the original bounding
* box to be arbitrarily remapped to any values. The specified drawable
* is remapped if no selection exists. However, if a selection exists,
* 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 interpolation parameter can be set to
* TRUE to indicate that either linear or cubic interpolation should be
* used to smooth the resulting remapped drawable. The return value is
* the ID of the remapped drawable. If there was no selection, this
* will be equal to the drawable 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
* drawable will appear to have been projected via a perspective
* transform.
* This procedure is deprecated! Use
* gimp_drawable_transform_perspective_defaults() instead.
*
* Returns: The newly mapped drawable.
*/
......@@ -148,19 +119,8 @@ gimp_perspective (gint32 drawable_ID,
* @interpolation: Whether to use interpolation.
* @angle: The angle of rotation (radians).
*
* Rotate the specified drawable about its center through the specified
* angle.
*
* This tool rotates the specified drawable if no selection exists. If
* a selection exists, 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
* interpolation parameter can be set to TRUE to indicate that either
* linear or cubic interpolation should be used to smooth the resulting
* rotated drawable. The return value is the ID of the rotated
* drawable. If there was no selection, this will be equal to the
* drawable ID supplied as input. Otherwise, this will be the newly
* created and rotated drawable.
* This procedure is deprecated! Use
* gimp_drawable_transform_rotate_defaults() instead.
*
* Returns: The rotated drawable.
*/
......@@ -197,18 +157,8 @@ gimp_rotate (gint32 drawable_ID,
* @x1: The new x coordinate of lower-right corner of newly scaled region.
* @y1: The new y coordinate of lower-right corner of newly scaled region.
*
* Scale the specified drawable.
*
* This tool scales the specified drawable if no selection exists. If a
* selection exists, 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
* interpolation parameter can be set to TRUE to indicate that either
* linear or cubic interpolation should be used to smooth the resulting
* scaled drawable. The return value is the ID of the scaled drawable.
* If there was no selection, this will be equal to the drawable ID
* supplied as input. Otherwise, this will be the newly created and
* scaled drawable.
* This procedure is deprecated! Use
* gimp_drawable_transform_scale_defaults() instead.
*
* Returns: The scaled drawable.
*/
......@@ -249,22 +199,8 @@ gimp_scale (gint32 drawable_ID,
* @shear_type: Type of shear.
* @magnitude: The magnitude of the shear.
*
* Shear the specified drawable about its center by the specified
* magnitude.
*
* This tool shears the specified drawable if no selection exists. If a
* selection exists, 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
* interpolation parameter can be set to TRUE to indicate that either
* linear or cubic interpolation should be used to smooth the resulting
* sheared drawable. The return value is the ID of the sheard drawable.
* If there was no selection, this will be equal to the drawable 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 deprecated! Use
* gimp_drawable_transform_shear_defaults() instead.
*
* Returns: The sheared drawable.
*/
......@@ -306,20 +242,8 @@ gimp_shear (gint32 drawable_ID,
* @dest_x: X coordinate of where the centre goes.
* @dest_y: Y coordinate of where the centre goes.
*
* Transform the specified drawable in 2d.
*
* This tool transforms the specified drawable if no selection exists.
* If a selection exists, 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 interpolation parameter can
* be set to TRUE to indicate that either linear or cubic interpolation
* should be used to smooth the resulting drawable. 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, this will be equal to the drawable ID supplied as input.
* Otherwise, this will be the newly created and transformed drawable.
* This procedure is deprecated! Use
* gimp_drawable_transform_2d_defaults() instead.
*
* Returns: The transformed drawable.
*/
......
......@@ -29,6 +29,7 @@ G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
#ifndef GIMP_DISABLE_DEPRECATED
gint32 gimp_flip (gint32 drawable_ID,
GimpOrientationType flip_type);
gint32 gimp_perspective (gint32 drawable_ID,
......@@ -63,6 +64,7 @@ gint32 gimp_transform_2d (gint32 drawable_ID,
gdouble angle,
gdouble dest_x,
gdouble dest_y);
#endif /* GIMP_DISABLE_DEPRECATED */
G_END_DECLS
......
......@@ -864,7 +864,7 @@ load_image (const gchar *filename)
{
load_rgba (tif, channel);
}
else if (TIFFIsTiled(tif))
else if (TIFFIsTiled (tif))
{
load_tiles (tif, channel, bps, photomet, alpha, extra);
}
......@@ -901,10 +901,14 @@ load_image (const gchar *filename)
}
if (flip_horizontal)
gimp_flip (layer, GIMP_ORIENTATION_HORIZONTAL);
gimp_drawable_transform_flip_simple (layer,
GIMP_ORIENTATION_HORIZONTAL,
TRUE, 0.0, TRUE);
if (flip_vertical)
gimp_flip (layer, GIMP_ORIENTATION_VERTICAL);
gimp_drawable_transform_flip_simple (layer,
GIMP_ORIENTATION_VERTICAL,
TRUE, 0.0, TRUE);
}
gimp_drawable_flush (channel[0].drawable);
......@@ -1880,11 +1884,13 @@ save_image (const gchar *filename,
TIFFSetField (tif, TIFFTAG_BITSPERSAMPLE, bitspersample);
TIFFSetField (tif, TIFFTAG_ORIENTATION, ORIENTATION_TOPLEFT);
TIFFSetField (tif, TIFFTAG_COMPRESSION, compression);
if ((compression == COMPRESSION_LZW || compression == COMPRESSION_DEFLATE)
&& (predictor != 0))
&& (predictor != 0))
{
TIFFSetField (tif, TIFFTAG_PREDICTOR, predictor);
}
if (alpha)
{
if (tsvals.save_transp_pixels)
......@@ -1894,6 +1900,7 @@ save_image (const gchar *filename,
TIFFSetField (tif, TIFFTAG_EXTRASAMPLES, 1, extra_samples);
}
TIFFSetField (tif, TIFFTAG_PHOTOMETRIC, photometric);
TIFFSetField (tif, TIFFTAG_DOCUMENTNAME, filename);
TIFFSetField (tif, TIFFTAG_SAMPLESPERPIXEL, samplesperpixel);
......
......@@ -138,7 +138,9 @@
(let ((floating-sel (car (gimp-edit-paste drawable1 FALSE))))
(gimp-floating-sel-anchor floating-sel))
;(let ((drawble (car (gimp-flip img drawable1 0)))))
;(let ((drawble (car (gimp-drawable-transform-flip-simple img drawable1
; ORIENTATION-HORIZONTAL
; TRUE 0 TRUE)))))
;(gimp-display-new temp-img)
......
......@@ -74,11 +74,12 @@
(gimp-selection-layer-alpha logo-layer)
(set! fs (car (gimp-selection-float shadow-layer 0 0)))
(gimp-edit-clear shadow-layer)
(gimp-perspective fs FALSE
(+ 5 (* 0.15 height)) (- height (* 0.15 height))
(+ 5 width (* 0.15 height)) (- height (* 0.15 height))
5 height
(+ 5 width) height)
(gimp-drawable-transform-perspective-defaults fs
(+ 5 (* 0.15 height)) (- height (* 0.15 height))
(+ 5 width (* 0.15 height)) (- height (* 0.15 height))
5 height
(+ 5 width) height
FALSE FALSE)
(gimp-floating-sel-anchor fs)
(plug-in-gauss-rle 1 img shadow-layer smear TRUE TRUE)
......@@ -86,8 +87,11 @@
(gimp-edit-copy logo-layer)
(set! fs (car (gimp-edit-paste reflect-layer FALSE)))
(gimp-floating-sel-anchor fs)
(gimp-scale reflect-layer FALSE 0 0 width (* 0.85 height))
(gimp-flip reflect-layer 1)
(gimp-drawable-transform-scale-defaults reflect-layer
0 0 width (* 0.85 height)
FALSE FALSE)
(gimp-drawable-transform-flip-simple reflect-layer ORIENTATION-VERTICAL
TRUE 0 TRUE)
(gimp-layer-set-offsets reflect-layer 5 (+ 3 height))
(set! layer-mask (car (gimp-layer-create-mask reflect-layer ADD-WHITE-MASK)))
......
......@@ -92,9 +92,11 @@
(gimp-layer-translate layer
(+ border shear-length) (+ border (* space index)))
(gimp-shear layer TRUE 0 (* (/ (car (gimp-drawable-height layer))
old-height)
(* -2 shear-length)))
(gimp-drawable-transform-shear-defaults layer ORIENTATION-HORIZONTAL
(* (/ (car (gimp-drawable-height layer))
old-height)
(* -2 shear-length))
TRUE FALSE)
(set! index (+ index 1)))
(set! new-bg (- num-of-layers 1))
(if (= TRUE with-background?)
......
......@@ -33,7 +33,8 @@
shadow-blur
shadow-color
shadow-opacity
interpolate allow-resize)
interpolation
allow-resize)
(let* ((shadow-blur (max shadow-blur 0))
(shadow-opacity (min shadow-opacity 100))
(shadow-opacity (max shadow-opacity 0))
......@@ -133,12 +134,13 @@
image-offset-x
image-offset-y)))
(gimp-perspective shadow-layer
interpolate
x0 y0
x1 y1
x2 y2
x3 y3)
(gimp-drawable-transform-perspective shadow-layer
x0 y0
x1 y1
x2 y2
x3 y3
TRANSFORM-FORWARD interpolation
TRUE 3 FALSE)
(if (>= shadow-blur 1.0)
(begin
......@@ -187,5 +189,5 @@
SF-ADJUSTMENT _"Blur radius" '(3 0 1024 1 10 0 0)
SF-COLOR _"Color" '(0 0 0)
SF-ADJUSTMENT _"Opacity" '(80 0 100 1 10 0 0)
SF-TOGGLE _"Interpolate" TRUE
SF-OPTION _"Interpolation" '(_"None" _"Linear" _"Cubic")
SF-TOGGLE _"Allow resizing" FALSE)
......@@ -95,8 +95,11 @@
(set! width (car (gimp-drawable-width new-layer)))
(if (not script-fu-text-circle-debug?)
(begin
(gimp-rotate new-layer 1
((if (< 0 fill-angle-rad) + -) angle rad-90))
(gimp-drawable-transform-rotate-defaults new-layer
((if (< 0 fill-angle-rad)
+ -) angle rad-90)
TRUE 0 0
TRUE FALSE)
(gimp-layer-translate new-layer
(+ center-x
(* radius (cos angle))
......
......@@ -82,7 +82,9 @@
(let ((floating-sel (car (gimp-edit-paste drawable1 FALSE))))
(gimp-floating-sel-anchor floating-sel))
(let ((drawble (car (gimp-flip drawable1 1)))))
(let ((drawble (car (gimp-drawable-transform-flip-simple drawable1
ORIENTATION-VERTICAL
TRUE 0 TRUE)))))
;(gimp-display-new temp-img)
......
......@@ -39,23 +39,7 @@ sub drawable_out_arg {
# The defs
sub flip {
$blurb = <<'BLURB';
Flip the specified drawable about its center either vertically or
horizontally.
BLURB
$help = <<'HELP';
This tool flips the specified drawable if no selection exists. If a selection
exists, the portion of the drawable which lies under the selection is cut from
the drawable and made into a floating selection which is then flipd by the
specified amount. The return value is the ID of the flipped drawable. If there
was no selection, this will be equal to the drawable ID supplied as input.
Otherwise, this will be the newly created and flipped drawable. The flip type
parameter indicates whether the flip will be applied horizontally or
vertically.
HELP
&std_pdb_misc;
&std_pdb_deprecated ('gimp_drawable_transform_flip_simple');
@inargs = (
&drawable_arg,
......@@ -84,29 +68,7 @@ CODE
}
sub perspective {
$blurb = <<'BLURB';
Perform a possibly non-affine transformation on the specified drawable.
BLURB
$help = <<'HELP';
This tool performs a possibly non-affine transformation on the specified
drawable by allowing the corners of the original bounding box to be arbitrarily
remapped to any values. The specified drawable is remapped if no selection
exists. However, if a selection exists, 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 interpolation parameter can be set to
TRUE to indicate that either linear or cubic interpolation should be used to
smooth the resulting remapped drawable. The return value is the ID of the
remapped drawable. If there was no selection, this will be equal to the
drawable 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 drawable will
appear to have been projected via a perspective transform.
HELP
&std_pdb_misc;
&std_pdb_deprecated ('gimp_drawable_transform_perspective_defaults');
@inargs = (
&drawable_arg,
......@@ -172,22 +134,7 @@ CODE
}
sub rotate {
$blurb = <<'BLURB';
Rotate the specified drawable about its center through the specified angle.
BLURB
$help = <<'HELP';
This tool rotates the specified drawable if no selection exists. If a selection
exists, 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 interpolation parameter can be set to TRUE to indicate
that either linear or cubic interpolation should be used to smooth the
resulting rotated drawable. The return value is the ID of the rotated drawable.
If there was no selection, this will be equal to the drawable ID supplied as
input. Otherwise, this will be the newly created and rotated drawable.
HELP
&std_pdb_misc;
&std_pdb_deprecated ('gimp_drawable_transform_rotate_defaults');
@inargs = (
&drawable_arg,
......@@ -238,20 +185,7 @@ CODE
}
sub scale {
$blurb = 'Scale the specified drawable.';
$help = <<'HELP';
This tool scales the specified drawable if no selection exists. If a selection
exists, 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 interpolation parameter can be set to TRUE to indicate
that either linear or cubic interpolation should be used to smooth the
resulting scaled drawable. The return value is the ID of the scaled drawable.
If there was no selection, this will be equal to the drawable ID supplied as
input. Otherwise, this will be the newly created and scaled drawable.
HELP
&std_pdb_misc;
&std_pdb_deprecated ('gimp_drawable_transform_scale_defaults');
@inargs = (
&drawable_arg,
......@@ -319,25 +253,7 @@ CODE
}
sub shear {
$blurb = <<'BLURB';
Shear the specified drawable about its center by the specified magnitude.
BLURB
$help = <<'HELP';
This tool shears the specified drawable if no selection exists. If a selection
exists, 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 interpolation parameter can be set to TRUE to indicate
that either linear or cubic interpolation should be used to smooth the
resulting sheared drawable. The return value is the ID of the sheard drawable.
If there was no selection, this will be equal to the drawable 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.
HELP
&std_pdb_misc;
&std_pdb_deprecated ('gimp_drawable_transform_shear_defaults');
@inargs = (
&drawable_arg,
......@@ -391,25 +307,7 @@ CODE
}
sub transform_2d {
$blurb = <<'BLURB';
Transform the specified drawable in 2d.
BLURB
$help = <<'HELP';
This tool transforms the specified drawable if no selection exists. If a
selection exists, 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 interpolation parameter can be set to TRUE to
indicate that either linear or cubic interpolation should be used to smooth
the resulting drawable. 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, this will be equal to the drawable ID supplied as
input. Otherwise, this will be the newly created and transformed drawable.
HELP
&std_pdb_misc;
&std_pdb_deprecated ('gimp_drawable_transform_2d_defaults');
@inargs = (
&drawable_arg,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment