| GIMP Library Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | ||||
gint32 gimp_drawable_transform_flip_simple (gint32 drawable_ID,GimpOrientationType flip_type,gboolean auto_center,gdouble axis,gboolean clip_result); gint32 gimp_drawable_transform_flip (gint32 drawable_ID,gdouble x0,gdouble y0,gdouble x1,gdouble y1,GimpTransformDirection transform_direction,GimpInterpolationType interpolation,gboolean supersample,gint recursion_level,gboolean clip_result); gint32 gimp_drawable_transform_flip_default (gint32 drawable_ID,gdouble x0,gdouble y0,gdouble x1,gdouble y1,gboolean interpolate,gboolean clip_result); gint32 gimp_drawable_transform_perspective (gint32 drawable_ID,gdouble x0,gdouble y0,gdouble x1,gdouble y1,gdouble x2,gdouble y2,gdouble x3,gdouble y3,GimpTransformDirection transform_direction,GimpInterpolationType interpolation,gboolean supersample,gint recursion_level,GimpTransformResize clip_result); gint32 gimp_drawable_transform_perspective_default (gint32 drawable_ID,gdouble x0,gdouble y0,gdouble x1,gdouble y1,gdouble x2,gdouble y2,gdouble x3,gdouble y3,gboolean interpolate,GimpTransformResize clip_result); gint32 gimp_drawable_transform_rotate_simple (gint32 drawable_ID,GimpRotationType rotate_type,gboolean auto_center,gint center_x,gint center_y,gboolean clip_result); gint32 gimp_drawable_transform_rotate (gint32 drawable_ID,gdouble angle,gboolean auto_center,gint center_x,gint center_y,GimpTransformDirection transform_direction,GimpInterpolationType interpolation,gboolean supersample,gint recursion_level,GimpTransformResize clip_result); gint32 gimp_drawable_transform_rotate_default (gint32 drawable_ID,gdouble angle,gboolean auto_center,gint center_x,gint center_y,gboolean interpolate,GimpTransformResize clip_result); gint32 gimp_drawable_transform_scale (gint32 drawable_ID,gdouble x0,gdouble y0,gdouble x1,gdouble y1,GimpTransformDirection transform_direction,GimpInterpolationType interpolation,gboolean supersample,gint recursion_level,GimpTransformResize clip_result); gint32 gimp_drawable_transform_scale_default (gint32 drawable_ID,gdouble x0,gdouble y0,gdouble x1,gdouble y1,gboolean interpolate,GimpTransformResize clip_result); gint32 gimp_drawable_transform_shear (gint32 drawable_ID,GimpOrientationType shear_type,gdouble magnitude,GimpTransformDirection transform_direction,GimpInterpolationType interpolation,gboolean supersample,gint recursion_level,GimpTransformResize clip_result); gint32 gimp_drawable_transform_shear_default (gint32 drawable_ID,GimpOrientationType shear_type,gdouble magnitude,gboolean interpolate,GimpTransformResize clip_result); gint32 gimp_drawable_transform_2d (gint32 drawable_ID,gdouble source_x,gdouble source_y,gdouble scale_x,gdouble scale_y,gdouble angle,gdouble dest_x,gdouble dest_y,GimpTransformDirection transform_direction,GimpInterpolationType interpolation,gboolean supersample,gint recursion_level,GimpTransformResize clip_result); gint32 gimp_drawable_transform_2d_default (gint32 drawable_ID,gdouble source_x,gdouble source_y,gdouble scale_x,gdouble scale_y,gdouble angle,gdouble dest_x,gdouble dest_y,gboolean interpolate,GimpTransformResize clip_result); gint32 gimp_drawable_transform_matrix (gint32 drawable_ID,gdouble coeff_0_0,gdouble coeff_0_1,gdouble coeff_0_2,gdouble coeff_1_0,gdouble coeff_1_1,gdouble coeff_1_2,gdouble coeff_2_0,gdouble coeff_2_1,gdouble coeff_2_2,GimpTransformDirection transform_direction,GimpInterpolationType interpolation,gboolean supersample,gint recursion_level,GimpTransformResize clip_result); gint32 gimp_drawable_transform_matrix_default (gint32 drawable_ID,gdouble coeff_0_0,gdouble coeff_0_1,gdouble coeff_0_2,gdouble coeff_1_0,gdouble coeff_1_1,gdouble coeff_1_2,gdouble coeff_2_0,gdouble coeff_2_1,gdouble coeff_2_2,gboolean interpolate,GimpTransformResize clip_result);
gint32 gimp_drawable_transform_flip_simple (gint32 drawable_ID,GimpOrientationType flip_type,gboolean auto_center,gdouble axis,gboolean clip_result);
gimp_drawable_transform_flip_simple is deprecated and should not be used in newly-written code. Use gimp_item_transform_flip_simple() instead.
|
The affected drawable. |
|
Type of flip. |
|
Whether to automatically position the axis in the selection center. |
|
coord. of flip axis. |
|
Whether to clip results. |
Returns : |
The flipped drawable. |
Since GIMP 2.2
gint32 gimp_drawable_transform_flip (gint32 drawable_ID,gdouble x0,gdouble y0,gdouble x1,gdouble y1,GimpTransformDirection transform_direction,GimpInterpolationType interpolation,gboolean supersample,gint recursion_level,gboolean clip_result);
gimp_drawable_transform_flip is deprecated and should not be used in newly-written code. Use gimp_item_transform_flip() instead.
|
The affected drawable. |
|
horz. coord. of one end of axis. |
|
vert. coord. of one end of axis. |
|
horz. coord. of other end of axis. |
|
vert. coord. of other end of axis. |
|
Direction of transformation. |
|
Type of interpolation. |
|
This parameter is ignored, supersampling is performed based on the interpolation type. |
|
Maximum recursion level used for supersampling (3 is a nice value). |
|
Whether to clip results. |
Returns : |
The flipped drawable. |
Since GIMP 2.2
gint32 gimp_drawable_transform_flip_default (gint32 drawable_ID,gdouble x0,gdouble y0,gdouble x1,gdouble y1,gboolean interpolate,gboolean clip_result);
gimp_drawable_transform_flip_default is deprecated and should not be used in newly-written code. Use gimp_item_transform_flip() instead.
|
The affected drawable. |
|
horz. coord. of one end of axis. |
|
vert. coord. of one end of axis. |
|
horz. coord. of other end of axis. |
|
vert. coord. of other end of axis. |
|
Whether to use interpolation and supersampling. |
|
Whether to clip results. |
Returns : |
The flipped drawable. |
Since GIMP 2.2
gint32 gimp_drawable_transform_perspective (gint32 drawable_ID,gdouble x0,gdouble y0,gdouble x1,gdouble y1,gdouble x2,gdouble y2,gdouble x3,gdouble y3,GimpTransformDirection transform_direction,GimpInterpolationType interpolation,gboolean supersample,gint recursion_level,GimpTransformResize clip_result);
gimp_drawable_transform_perspective is deprecated and should not be used in newly-written code. Use gimp_item_transform_perspective() instead.
|
The affected drawable. |
|
The new x coordinate of upper-left corner of original bounding box. |
|
The new y coordinate of upper-left corner of original bounding box. |
|
The new x coordinate of upper-right corner of original bounding box. |
|
The new y coordinate of upper-right corner of original bounding box. |
|
The new x coordinate of lower-left corner of original bounding box. |
|
The new y coordinate of lower-left corner of original bounding box. |
|
The new x coordinate of lower-right corner of original bounding box. |
|
The new y coordinate of lower-right corner of original bounding box. |
|
Direction of transformation. |
|
Type of interpolation. |
|
This parameter is ignored, supersampling is performed based on the interpolation type. |
|
Maximum recursion level used for supersampling (3 is a nice value). |
|
How to clip results. |
Returns : |
The newly mapped drawable. |
Since GIMP 2.2
gint32 gimp_drawable_transform_perspective_default (gint32 drawable_ID,gdouble x0,gdouble y0,gdouble x1,gdouble y1,gdouble x2,gdouble y2,gdouble x3,gdouble y3,gboolean interpolate,GimpTransformResize clip_result);
gimp_drawable_transform_perspective_default is deprecated and should not be used in newly-written code. Use gimp_item_transform_perspective() instead.
|
The affected drawable. |
|
The new x coordinate of upper-left corner of original bounding box. |
|
The new y coordinate of upper-left corner of original bounding box. |
|
The new x coordinate of upper-right corner of original bounding box. |
|
The new y coordinate of upper-right corner of original bounding box. |
|
The new x coordinate of lower-left corner of original bounding box. |
|
The new y coordinate of lower-left corner of original bounding box. |
|
The new x coordinate of lower-right corner of original bounding box. |
|
The new y coordinate of lower-right corner of original bounding box. |
|
Whether to use interpolation and supersampling. |
|
How to clip results. |
Returns : |
The newly mapped drawable. |
Since GIMP 2.2
gint32 gimp_drawable_transform_rotate_simple (gint32 drawable_ID,GimpRotationType rotate_type,gboolean auto_center,gint center_x,gint center_y,gboolean clip_result);
gimp_drawable_transform_rotate_simple is deprecated and should not be used in newly-written code. Use gimp_item_transform_rotate_simple() instead.
|
The affected drawable. |
|
Type of rotation. |
|
Whether to automatically rotate around the selection center. |
|
The hor. coordinate of the center of rotation. |
|
The vert. coordinate of the center of rotation. |
|
Whether to clip results. |
Returns : |
The rotated drawable. |
Since GIMP 2.2
gint32 gimp_drawable_transform_rotate (gint32 drawable_ID,gdouble angle,gboolean auto_center,gint center_x,gint center_y,GimpTransformDirection transform_direction,GimpInterpolationType interpolation,gboolean supersample,gint recursion_level,GimpTransformResize clip_result);
gimp_drawable_transform_rotate is deprecated and should not be used in newly-written code. Use gimp_item_transform_rotate() instead.
|
The affected drawable. |
|
The angle of rotation (radians). |
|
Whether to automatically rotate around the selection center. |
|
The hor. coordinate of the center of rotation. |
|
The vert. coordinate of the center of rotation. |
|
Direction of transformation. |
|
Type of interpolation. |
|
This parameter is ignored, supersampling is performed based on the interpolation type. |
|
Maximum recursion level used for supersampling (3 is a nice value). |
|
How to clip results. |
Returns : |
The rotated drawable. |
Since GIMP 2.2
gint32 gimp_drawable_transform_rotate_default (gint32 drawable_ID,gdouble angle,gboolean auto_center,gint center_x,gint center_y,gboolean interpolate,GimpTransformResize clip_result);
gimp_drawable_transform_rotate_default is deprecated and should not be used in newly-written code. Use gimp_item_transform_rotate() instead.
|
The affected drawable. |
|
The angle of rotation (radians). |
|
Whether to automatically rotate around the selection center. |
|
The hor. coordinate of the center of rotation. |
|
The vert. coordinate of the center of rotation. |
|
Whether to use interpolation and supersampling. |
|
How to clip results. |
Returns : |
The rotated drawable. |
Since GIMP 2.2
gint32 gimp_drawable_transform_scale (gint32 drawable_ID,gdouble x0,gdouble y0,gdouble x1,gdouble y1,GimpTransformDirection transform_direction,GimpInterpolationType interpolation,gboolean supersample,gint recursion_level,GimpTransformResize clip_result);
gimp_drawable_transform_scale is deprecated and should not be used in newly-written code. Use gimp_item_transform_scale() instead.
|
The affected drawable. |
|
The new x coordinate of the upper-left corner of the scaled region. |
|
The new y coordinate of the upper-left corner of the scaled region. |
|
The new x coordinate of the lower-right corner of the scaled region. |
|
The new y coordinate of the lower-right corner of the scaled region. |
|
Direction of transformation. |
|
Type of interpolation. |
|
This parameter is ignored, supersampling is performed based on the interpolation type. |
|
Maximum recursion level used for supersampling (3 is a nice value). |
|
How to clip results. |
Returns : |
The scaled drawable. |
Since GIMP 2.2
gint32 gimp_drawable_transform_scale_default (gint32 drawable_ID,gdouble x0,gdouble y0,gdouble x1,gdouble y1,gboolean interpolate,GimpTransformResize clip_result);
gimp_drawable_transform_scale_default is deprecated and should not be used in newly-written code. Use gimp_item_transform_scale() instead.
|
The affected drawable. |
|
The new x coordinate of the upper-left corner of the scaled region. |
|
The new y coordinate of the upper-left corner of the scaled region. |
|
The new x coordinate of the lower-right corner of the scaled region. |
|
The new y coordinate of the lower-right corner of the scaled region. |
|
Whether to use interpolation and supersampling. |
|
How to clip results. |
Returns : |
The scaled drawable. |
Since GIMP 2.2
gint32 gimp_drawable_transform_shear (gint32 drawable_ID,GimpOrientationType shear_type,gdouble magnitude,GimpTransformDirection transform_direction,GimpInterpolationType interpolation,gboolean supersample,gint recursion_level,GimpTransformResize clip_result);
gimp_drawable_transform_shear is deprecated and should not be used in newly-written code. Use gimp_item_transform_shear() instead.
|
The affected drawable. |
|
Type of shear. |
|
The magnitude of the shear. |
|
Direction of transformation. |
|
Type of interpolation. |
|
This parameter is ignored, supersampling is performed based on the interpolation type. |
|
Maximum recursion level used for supersampling (3 is a nice value). |
|
How to clip results. |
Returns : |
The sheared drawable. |
Since GIMP 2.2
gint32 gimp_drawable_transform_shear_default (gint32 drawable_ID,GimpOrientationType shear_type,gdouble magnitude,gboolean interpolate,GimpTransformResize clip_result);
gimp_drawable_transform_shear_default is deprecated and should not be used in newly-written code. Use gimp_item_transform_shear() instead.
|
The affected drawable. |
|
Type of shear. |
|
The magnitude of the shear. |
|
Whether to use interpolation and supersampling. |
|
How to clip results. |
Returns : |
The sheared drawable. |
Since GIMP 2.2
gint32 gimp_drawable_transform_2d (gint32 drawable_ID,gdouble source_x,gdouble source_y,gdouble scale_x,gdouble scale_y,gdouble angle,gdouble dest_x,gdouble dest_y,GimpTransformDirection transform_direction,GimpInterpolationType interpolation,gboolean supersample,gint recursion_level,GimpTransformResize clip_result);
gimp_drawable_transform_2d is deprecated and should not be used in newly-written code. Use gimp_item_transform_2d() instead.
|
The affected drawable. |
|
X coordinate of the transformation center. |
|
Y coordinate of the transformation center. |
|
Amount to scale in x direction. |
|
Amount to scale in y direction. |
|
The angle of rotation (radians). |
|
X coordinate of where the center goes. |
|
Y coordinate of where the center goes. |
|
Direction of transformation. |
|
Type of interpolation. |
|
This parameter is ignored, supersampling is performed based on the interpolation type. |
|
Maximum recursion level used for supersampling (3 is a nice value). |
|
How to clip results. |
Returns : |
The transformed drawable. |
Since GIMP 2.2
gint32 gimp_drawable_transform_2d_default (gint32 drawable_ID,gdouble source_x,gdouble source_y,gdouble scale_x,gdouble scale_y,gdouble angle,gdouble dest_x,gdouble dest_y,gboolean interpolate,GimpTransformResize clip_result);
gimp_drawable_transform_2d_default is deprecated and should not be used in newly-written code. Use gimp_item_transform_2d() instead.
|
The affected drawable. |
|
X coordinate of the transformation center. |
|
Y coordinate of the transformation center. |
|
Amount to scale in x direction. |
|
Amount to scale in y direction. |
|
The angle of rotation (radians). |
|
X coordinate of where the center goes. |
|
Y coordinate of where the center goes. |
|
Whether to use interpolation and supersampling. |
|
How to clip results. |
Returns : |
The transformed drawable. |
Since GIMP 2.2
gint32 gimp_drawable_transform_matrix (gint32 drawable_ID,gdouble coeff_0_0,gdouble coeff_0_1,gdouble coeff_0_2,gdouble coeff_1_0,gdouble coeff_1_1,gdouble coeff_1_2,gdouble coeff_2_0,gdouble coeff_2_1,gdouble coeff_2_2,GimpTransformDirection transform_direction,GimpInterpolationType interpolation,gboolean supersample,gint recursion_level,GimpTransformResize clip_result);
gimp_drawable_transform_matrix is deprecated and should not be used in newly-written code. Use gimp_item_transform_matrix() instead.
|
The affected drawable. |
|
coefficient (0,0) of the transformation matrix. |
|
coefficient (0,1) of the transformation matrix. |
|
coefficient (0,2) of the transformation matrix. |
|
coefficient (1,0) of the transformation matrix. |
|
coefficient (1,1) of the transformation matrix. |
|
coefficient (1,2) of the transformation matrix. |
|
coefficient (2,0) of the transformation matrix. |
|
coefficient (2,1) of the transformation matrix. |
|
coefficient (2,2) of the transformation matrix. |
|
Direction of transformation. |
|
Type of interpolation. |
|
This parameter is ignored, supersampling is performed based on the interpolation type. |
|
Maximum recursion level used for supersampling (3 is a nice value). |
|
How to clip results. |
Returns : |
The transformed drawable. |
Since GIMP 2.2
gint32 gimp_drawable_transform_matrix_default (gint32 drawable_ID,gdouble coeff_0_0,gdouble coeff_0_1,gdouble coeff_0_2,gdouble coeff_1_0,gdouble coeff_1_1,gdouble coeff_1_2,gdouble coeff_2_0,gdouble coeff_2_1,gdouble coeff_2_2,gboolean interpolate,GimpTransformResize clip_result);
gimp_drawable_transform_matrix_default is deprecated and should not be used in newly-written code. Use gimp_item_transform_matrix() instead.
|
The affected drawable. |
|
coefficient (0,0) of the transformation matrix. |
|
coefficient (0,1) of the transformation matrix. |
|
coefficient (0,2) of the transformation matrix. |
|
coefficient (1,0) of the transformation matrix. |
|
coefficient (1,1) of the transformation matrix. |
|
coefficient (1,2) of the transformation matrix. |
|
coefficient (2,0) of the transformation matrix. |
|
coefficient (2,1) of the transformation matrix. |
|
coefficient (2,2) of the transformation matrix. |
|
Whether to use interpolation and supersampling. |
|
How to clip results. |
Returns : |
The transformed drawable. |
Since GIMP 2.2