38
38
* This procedure flips the specified drawable if no selection exists.
39
39
* If a selection exists, the portion of the drawable which lies under
40
40
* the selection is cut from the drawable and made into a floating
41
* selection which is then flipped. If auto_center is set to true, the
41
* selection which is then flipped. If auto_center is set to TRUE, the
42
42
* flip is around the selection's center. Otherwise, the coordinate of
43
43
* the axis needs to be specified. The return value is the ID of the
44
44
* flipped drawable. If there was no selection, this will be equal to
53
53
gimp_drawable_transform_flip_simple (gint32 drawable_ID,
54
GimpOrientationType flip_type,
54
GimpOrientationType flip_type,
59
59
GimpParam *return_vals;
61
61
gint32 ret_drawable_ID = -1;
63
return_vals = gimp_run_procedure ("gimp_drawable_transform_flip_simple",
65
GIMP_PDB_DRAWABLE, drawable_ID,
66
GIMP_PDB_INT32, flip_type,
67
GIMP_PDB_INT32, auto_center,
69
GIMP_PDB_INT32, clip_result,
63
return_vals = gimp_run_procedure ("gimp-drawable-transform-flip-simple",
65
GIMP_PDB_DRAWABLE, drawable_ID,
66
GIMP_PDB_INT32, flip_type,
67
GIMP_PDB_INT32, auto_center,
69
GIMP_PDB_INT32, clip_result,
72
72
if (return_vals[0].data.d_status == GIMP_PDB_SUCCESS)
73
73
ret_drawable_ID = return_vals[1].data.d_drawable;
111
111
gimp_drawable_transform_flip (gint32 drawable_ID,
116
GimpTransformDirection transform_direction,
117
GimpInterpolationType interpolation,
118
gboolean supersample,
119
gint recursion_level,
120
gboolean clip_result)
116
GimpTransformDirection transform_direction,
117
GimpInterpolationType interpolation,
118
gboolean supersample,
119
gint recursion_level,
120
gboolean clip_result)
122
122
GimpParam *return_vals;
123
123
gint nreturn_vals;
124
124
gint32 ret_drawable_ID = -1;
126
return_vals = gimp_run_procedure ("gimp_drawable_transform_flip",
128
GIMP_PDB_DRAWABLE, drawable_ID,
133
GIMP_PDB_INT32, transform_direction,
134
GIMP_PDB_INT32, interpolation,
135
GIMP_PDB_INT32, supersample,
136
GIMP_PDB_INT32, recursion_level,
137
GIMP_PDB_INT32, clip_result,
126
return_vals = gimp_run_procedure ("gimp-drawable-transform-flip",
128
GIMP_PDB_DRAWABLE, drawable_ID,
133
GIMP_PDB_INT32, transform_direction,
134
GIMP_PDB_INT32, interpolation,
135
GIMP_PDB_INT32, supersample,
136
GIMP_PDB_INT32, recursion_level,
137
GIMP_PDB_INT32, clip_result,
140
140
if (return_vals[0].data.d_status == GIMP_PDB_SUCCESS)
141
141
ret_drawable_ID = return_vals[1].data.d_drawable;
169
169
gimp_drawable_transform_flip_default (gint32 drawable_ID,
174
gboolean interpolate,
175
gboolean clip_result)
174
gboolean interpolate,
175
gboolean clip_result)
177
177
GimpParam *return_vals;
178
178
gint nreturn_vals;
179
179
gint32 ret_drawable_ID = -1;
181
return_vals = gimp_run_procedure ("gimp_drawable_transform_flip_default",
183
GIMP_PDB_DRAWABLE, drawable_ID,
188
GIMP_PDB_INT32, interpolate,
189
GIMP_PDB_INT32, clip_result,
181
return_vals = gimp_run_procedure ("gimp-drawable-transform-flip-default",
183
GIMP_PDB_DRAWABLE, drawable_ID,
188
GIMP_PDB_INT32, interpolate,
189
GIMP_PDB_INT32, clip_result,
192
192
if (return_vals[0].data.d_status == GIMP_PDB_SUCCESS)
193
193
ret_drawable_ID = return_vals[1].data.d_drawable;
208
208
* @y2: The new y coordinate of lower-left corner of original bounding box.
209
209
* @x3: The new x coordinate of lower-right corner of original bounding box.
210
210
* @y3: The new y coordinate of lower-right corner of original bounding box.
211
* @transform_direction: Direction of Transformation.
211
* @transform_direction: Direction of transformation.
212
212
* @interpolation: Type of interpolation.
213
213
* @supersample: Whether to perform supersample.
214
214
* @recursion_level: Level of recursion (3 is a nice default).
215
* @clip_result: Whether to clip results.
215
* @clip_result: How to clip results.
217
217
* Perform a possibly non-affine transformation on the specified
218
218
* drawable, with extra parameters.
241
241
gimp_drawable_transform_perspective (gint32 drawable_ID,
250
GimpTransformDirection transform_direction,
251
GimpInterpolationType interpolation,
252
gboolean supersample,
253
gint recursion_level,
254
gboolean clip_result)
250
GimpTransformDirection transform_direction,
251
GimpInterpolationType interpolation,
252
gboolean supersample,
253
gint recursion_level,
254
GimpTransformResize clip_result)
256
256
GimpParam *return_vals;
257
257
gint nreturn_vals;
258
258
gint32 ret_drawable_ID = -1;
260
return_vals = gimp_run_procedure ("gimp_drawable_transform_perspective",
262
GIMP_PDB_DRAWABLE, drawable_ID,
271
GIMP_PDB_INT32, transform_direction,
272
GIMP_PDB_INT32, interpolation,
273
GIMP_PDB_INT32, supersample,
274
GIMP_PDB_INT32, recursion_level,
275
GIMP_PDB_INT32, clip_result,
260
return_vals = gimp_run_procedure ("gimp-drawable-transform-perspective",
262
GIMP_PDB_DRAWABLE, drawable_ID,
271
GIMP_PDB_INT32, transform_direction,
272
GIMP_PDB_INT32, interpolation,
273
GIMP_PDB_INT32, supersample,
274
GIMP_PDB_INT32, recursion_level,
275
GIMP_PDB_INT32, clip_result,
278
278
if (return_vals[0].data.d_status == GIMP_PDB_SUCCESS)
279
279
ret_drawable_ID = return_vals[1].data.d_drawable;
309
309
* Since: GIMP 2.2
312
gimp_drawable_transform_perspective_default (gint32 drawable_ID,
321
gboolean interpolate,
322
gboolean clip_result)
312
gimp_drawable_transform_perspective_default (gint32 drawable_ID,
321
gboolean interpolate,
322
GimpTransformResize clip_result)
324
324
GimpParam *return_vals;
325
325
gint nreturn_vals;
326
326
gint32 ret_drawable_ID = -1;
328
return_vals = gimp_run_procedure ("gimp_drawable_transform_perspective_default",
330
GIMP_PDB_DRAWABLE, drawable_ID,
339
GIMP_PDB_INT32, interpolate,
340
GIMP_PDB_INT32, clip_result,
328
return_vals = gimp_run_procedure ("gimp-drawable-transform-perspective-default",
330
GIMP_PDB_DRAWABLE, drawable_ID,
339
GIMP_PDB_INT32, interpolate,
340
GIMP_PDB_INT32, clip_result,
343
343
if (return_vals[0].data.d_status == GIMP_PDB_SUCCESS)
344
344
ret_drawable_ID = return_vals[1].data.d_drawable;
376
376
gimp_drawable_transform_rotate_simple (gint32 drawable_ID,
377
GimpRotationType rotate_type,
378
gboolean auto_center,
381
gboolean clip_result)
377
GimpRotationType rotate_type,
378
gboolean auto_center,
381
gboolean clip_result)
383
383
GimpParam *return_vals;
384
384
gint nreturn_vals;
385
385
gint32 ret_drawable_ID = -1;
387
return_vals = gimp_run_procedure ("gimp_drawable_transform_rotate_simple",
389
GIMP_PDB_DRAWABLE, drawable_ID,
390
GIMP_PDB_INT32, rotate_type,
391
GIMP_PDB_INT32, auto_center,
392
GIMP_PDB_INT32, center_x,
393
GIMP_PDB_INT32, center_y,
394
GIMP_PDB_INT32, clip_result,
387
return_vals = gimp_run_procedure ("gimp-drawable-transform-rotate-simple",
389
GIMP_PDB_DRAWABLE, drawable_ID,
390
GIMP_PDB_INT32, rotate_type,
391
GIMP_PDB_INT32, auto_center,
392
GIMP_PDB_INT32, center_x,
393
GIMP_PDB_INT32, center_y,
394
GIMP_PDB_INT32, clip_result,
397
397
if (return_vals[0].data.d_status == GIMP_PDB_SUCCESS)
398
398
ret_drawable_ID = return_vals[1].data.d_drawable;
409
409
* @auto_center: Whether to automatically rotate around the selection center.
410
410
* @center_x: The hor. coordinate of the center of rotation.
411
411
* @center_y: The vert. coordinate of the center of rotation.
412
* @transform_direction: Direction of Transformation.
412
* @transform_direction: Direction of transformation.
413
413
* @interpolation: Type of interpolation.
414
414
* @supersample: Whether to perform supersample.
415
415
* @recursion_level: Level of recursion (3 is a nice default).
416
* @clip_result: Whether to clip results.
416
* @clip_result: How to clip results.
418
418
* Rotate the specified drawable about given coordinates through the
419
419
* specified angle.
434
434
gimp_drawable_transform_rotate (gint32 drawable_ID,
436
gboolean auto_center,
439
GimpTransformDirection transform_direction,
440
GimpInterpolationType interpolation,
441
gboolean supersample,
442
gint recursion_level,
443
gboolean clip_result)
436
gboolean auto_center,
439
GimpTransformDirection transform_direction,
440
GimpInterpolationType interpolation,
441
gboolean supersample,
442
gint recursion_level,
443
GimpTransformResize clip_result)
445
445
GimpParam *return_vals;
446
446
gint nreturn_vals;
447
447
gint32 ret_drawable_ID = -1;
449
return_vals = gimp_run_procedure ("gimp_drawable_transform_rotate",
451
GIMP_PDB_DRAWABLE, drawable_ID,
452
GIMP_PDB_FLOAT, angle,
453
GIMP_PDB_INT32, auto_center,
454
GIMP_PDB_INT32, center_x,
455
GIMP_PDB_INT32, center_y,
456
GIMP_PDB_INT32, transform_direction,
457
GIMP_PDB_INT32, interpolation,
458
GIMP_PDB_INT32, supersample,
459
GIMP_PDB_INT32, recursion_level,
460
GIMP_PDB_INT32, clip_result,
449
return_vals = gimp_run_procedure ("gimp-drawable-transform-rotate",
451
GIMP_PDB_DRAWABLE, drawable_ID,
452
GIMP_PDB_FLOAT, angle,
453
GIMP_PDB_INT32, auto_center,
454
GIMP_PDB_INT32, center_x,
455
GIMP_PDB_INT32, center_y,
456
GIMP_PDB_INT32, transform_direction,
457
GIMP_PDB_INT32, interpolation,
458
GIMP_PDB_INT32, supersample,
459
GIMP_PDB_INT32, recursion_level,
460
GIMP_PDB_INT32, clip_result,
463
463
if (return_vals[0].data.d_status == GIMP_PDB_SUCCESS)
464
464
ret_drawable_ID = return_vals[1].data.d_drawable;
490
490
* Since: GIMP 2.2
493
gimp_drawable_transform_rotate_default (gint32 drawable_ID,
495
gboolean auto_center,
498
gboolean interpolate,
499
gboolean clip_result)
493
gimp_drawable_transform_rotate_default (gint32 drawable_ID,
495
gboolean auto_center,
498
gboolean interpolate,
499
GimpTransformResize clip_result)
501
501
GimpParam *return_vals;
502
502
gint nreturn_vals;
503
503
gint32 ret_drawable_ID = -1;
505
return_vals = gimp_run_procedure ("gimp_drawable_transform_rotate_default",
507
GIMP_PDB_DRAWABLE, drawable_ID,
508
GIMP_PDB_FLOAT, angle,
509
GIMP_PDB_INT32, auto_center,
510
GIMP_PDB_INT32, center_x,
511
GIMP_PDB_INT32, center_y,
512
GIMP_PDB_INT32, interpolate,
513
GIMP_PDB_INT32, clip_result,
505
return_vals = gimp_run_procedure ("gimp-drawable-transform-rotate-default",
507
GIMP_PDB_DRAWABLE, drawable_ID,
508
GIMP_PDB_FLOAT, angle,
509
GIMP_PDB_INT32, auto_center,
510
GIMP_PDB_INT32, center_x,
511
GIMP_PDB_INT32, center_y,
512
GIMP_PDB_INT32, interpolate,
513
GIMP_PDB_INT32, clip_result,
516
516
if (return_vals[0].data.d_status == GIMP_PDB_SUCCESS)
517
517
ret_drawable_ID = return_vals[1].data.d_drawable;
525
525
* gimp_drawable_transform_scale:
526
526
* @drawable_ID: The affected drawable.
527
* @x0: The new x coordinate of upper-left corner of newly scaled region.
528
* @y0: The new y coordinate of upper-left corner of newly scaled region.
529
* @x1: The new x coordinate of lower-right corner of newly scaled region.
530
* @y1: The new y coordinate of lower-right corner of newly scaled region.
531
* @transform_direction: Direction of Transformation.
527
* @x0: The new x coordinate of the upper-left corner of the scaled region.
528
* @y0: The new y coordinate of the upper-left corner of the scaled region.
529
* @x1: The new x coordinate of the lower-right corner of the scaled region.
530
* @y1: The new y coordinate of the lower-right corner of the scaled region.
531
* @transform_direction: Direction of transformation.
532
532
* @interpolation: Type of interpolation.
533
533
* @supersample: Whether to perform supersample.
534
534
* @recursion_level: Level of recursion (3 is a nice default).
535
* @clip_result: Whether to clip results.
535
* @clip_result: How to clip results.
537
537
* Scale the specified drawable with extra parameters
552
552
gimp_drawable_transform_scale (gint32 drawable_ID,
557
GimpTransformDirection transform_direction,
558
GimpInterpolationType interpolation,
559
gboolean supersample,
560
gint recursion_level,
561
gboolean clip_result)
557
GimpTransformDirection transform_direction,
558
GimpInterpolationType interpolation,
559
gboolean supersample,
560
gint recursion_level,
561
GimpTransformResize clip_result)
563
563
GimpParam *return_vals;
564
564
gint nreturn_vals;
565
565
gint32 ret_drawable_ID = -1;
567
return_vals = gimp_run_procedure ("gimp_drawable_transform_scale",
569
GIMP_PDB_DRAWABLE, drawable_ID,
574
GIMP_PDB_INT32, transform_direction,
575
GIMP_PDB_INT32, interpolation,
576
GIMP_PDB_INT32, supersample,
577
GIMP_PDB_INT32, recursion_level,
578
GIMP_PDB_INT32, clip_result,
567
return_vals = gimp_run_procedure ("gimp-drawable-transform-scale",
569
GIMP_PDB_DRAWABLE, drawable_ID,
574
GIMP_PDB_INT32, transform_direction,
575
GIMP_PDB_INT32, interpolation,
576
GIMP_PDB_INT32, supersample,
577
GIMP_PDB_INT32, recursion_level,
578
GIMP_PDB_INT32, clip_result,
581
581
if (return_vals[0].data.d_status == GIMP_PDB_SUCCESS)
582
582
ret_drawable_ID = return_vals[1].data.d_drawable;
590
590
* gimp_drawable_transform_scale_default:
591
591
* @drawable_ID: The affected drawable.
592
* @x0: The new x coordinate of upper-left corner of newly scaled region.
593
* @y0: The new y coordinate of upper-left corner of newly scaled region.
594
* @x1: The new x coordinate of lower-right corner of newly scaled region.
595
* @y1: The new y coordinate of lower-right corner of newly scaled region.
592
* @x0: The new x coordinate of the upper-left corner of the scaled region.
593
* @y0: The new y coordinate of the upper-left corner of the scaled region.
594
* @x1: The new x coordinate of the lower-right corner of the scaled region.
595
* @y1: The new y coordinate of the lower-right corner of the scaled region.
596
596
* @interpolate: Whether to use interpolation and supersampling.
597
* @clip_result: Whether to clip results.
597
* @clip_result: How to clip results.
599
599
* Scale the specified drawable with extra parameters
607
607
* Since: GIMP 2.2
610
gimp_drawable_transform_scale_default (gint32 drawable_ID,
615
gboolean interpolate,
616
gboolean clip_result)
610
gimp_drawable_transform_scale_default (gint32 drawable_ID,
615
gboolean interpolate,
616
GimpTransformResize clip_result)
618
618
GimpParam *return_vals;
619
619
gint nreturn_vals;
620
620
gint32 ret_drawable_ID = -1;
622
return_vals = gimp_run_procedure ("gimp_drawable_transform_scale_default",
624
GIMP_PDB_DRAWABLE, drawable_ID,
629
GIMP_PDB_INT32, interpolate,
630
GIMP_PDB_INT32, clip_result,
622
return_vals = gimp_run_procedure ("gimp-drawable-transform-scale-default",
624
GIMP_PDB_DRAWABLE, drawable_ID,
629
GIMP_PDB_INT32, interpolate,
630
GIMP_PDB_INT32, clip_result,
633
633
if (return_vals[0].data.d_status == GIMP_PDB_SUCCESS)
634
634
ret_drawable_ID = return_vals[1].data.d_drawable;
643
643
* @drawable_ID: The affected drawable.
644
644
* @shear_type: Type of shear.
645
645
* @magnitude: The magnitude of the shear.
646
* @transform_direction: Direction of Transformation.
646
* @transform_direction: Direction of transformation.
647
647
* @interpolation: Type of interpolation.
648
648
* @supersample: Whether to perform supersample.
649
649
* @recursion_level: Level of recursion (3 is a nice default).
650
* @clip_result: Whether to clip results.
650
* @clip_result: How to clip results.
652
652
* Shear the specified drawable about its center by the specified
653
653
* magnitude, with extra parameters.
671
671
gimp_drawable_transform_shear (gint32 drawable_ID,
672
GimpOrientationType shear_type,
674
GimpTransformDirection transform_direction,
675
GimpInterpolationType interpolation,
676
gboolean supersample,
677
gint recursion_level,
678
gboolean clip_result)
672
GimpOrientationType shear_type,
674
GimpTransformDirection transform_direction,
675
GimpInterpolationType interpolation,
676
gboolean supersample,
677
gint recursion_level,
678
GimpTransformResize clip_result)
680
680
GimpParam *return_vals;
681
681
gint nreturn_vals;
682
682
gint32 ret_drawable_ID = -1;
684
return_vals = gimp_run_procedure ("gimp_drawable_transform_shear",
686
GIMP_PDB_DRAWABLE, drawable_ID,
687
GIMP_PDB_INT32, shear_type,
688
GIMP_PDB_FLOAT, magnitude,
689
GIMP_PDB_INT32, transform_direction,
690
GIMP_PDB_INT32, interpolation,
691
GIMP_PDB_INT32, supersample,
692
GIMP_PDB_INT32, recursion_level,
693
GIMP_PDB_INT32, clip_result,
684
return_vals = gimp_run_procedure ("gimp-drawable-transform-shear",
686
GIMP_PDB_DRAWABLE, drawable_ID,
687
GIMP_PDB_INT32, shear_type,
688
GIMP_PDB_FLOAT, magnitude,
689
GIMP_PDB_INT32, transform_direction,
690
GIMP_PDB_INT32, interpolation,
691
GIMP_PDB_INT32, supersample,
692
GIMP_PDB_INT32, recursion_level,
693
GIMP_PDB_INT32, clip_result,
696
696
if (return_vals[0].data.d_status == GIMP_PDB_SUCCESS)
697
697
ret_drawable_ID = return_vals[1].data.d_drawable;
724
724
gimp_drawable_transform_shear_default (gint32 drawable_ID,
725
GimpOrientationType shear_type,
727
gboolean interpolate,
728
gboolean clip_result)
725
GimpOrientationType shear_type,
727
gboolean interpolate,
728
GimpTransformResize clip_result)
730
730
GimpParam *return_vals;
731
731
gint nreturn_vals;
732
732
gint32 ret_drawable_ID = -1;
734
return_vals = gimp_run_procedure ("gimp_drawable_transform_shear_default",
736
GIMP_PDB_DRAWABLE, drawable_ID,
737
GIMP_PDB_INT32, shear_type,
738
GIMP_PDB_FLOAT, magnitude,
739
GIMP_PDB_INT32, interpolate,
740
GIMP_PDB_INT32, clip_result,
734
return_vals = gimp_run_procedure ("gimp-drawable-transform-shear-default",
736
GIMP_PDB_DRAWABLE, drawable_ID,
737
GIMP_PDB_INT32, shear_type,
738
GIMP_PDB_FLOAT, magnitude,
739
GIMP_PDB_INT32, interpolate,
740
GIMP_PDB_INT32, clip_result,
743
743
if (return_vals[0].data.d_status == GIMP_PDB_SUCCESS)
744
744
ret_drawable_ID = return_vals[1].data.d_drawable;
758
758
* @angle: The angle of rotation (radians).
759
759
* @dest_x: X coordinate of where the center goes.
760
760
* @dest_y: Y coordinate of where the center goes.
761
* @transform_direction: Direction of Transformation.
761
* @transform_direction: Direction of transformation.
762
762
* @interpolation: Type of interpolation.
763
763
* @supersample: Whether to perform supersample.
764
764
* @recursion_level: Level of recursion (3 is a nice default).
765
* @clip_result: Whether to clip results.
765
* @clip_result: How to clip results.
767
767
* Transform the specified drawable in 2d, with extra parameters.
785
785
gimp_drawable_transform_2d (gint32 drawable_ID,
793
GimpTransformDirection transform_direction,
794
GimpInterpolationType interpolation,
795
gboolean supersample,
796
gint recursion_level,
797
gboolean clip_result)
793
GimpTransformDirection transform_direction,
794
GimpInterpolationType interpolation,
795
gboolean supersample,
796
gint recursion_level,
797
GimpTransformResize clip_result)
799
799
GimpParam *return_vals;
800
800
gint nreturn_vals;
801
801
gint32 ret_drawable_ID = -1;
803
return_vals = gimp_run_procedure ("gimp_drawable_transform_2d",
805
GIMP_PDB_DRAWABLE, drawable_ID,
806
GIMP_PDB_FLOAT, source_x,
807
GIMP_PDB_FLOAT, source_y,
808
GIMP_PDB_FLOAT, scale_x,
809
GIMP_PDB_FLOAT, scale_y,
810
GIMP_PDB_FLOAT, angle,
811
GIMP_PDB_FLOAT, dest_x,
812
GIMP_PDB_FLOAT, dest_y,
813
GIMP_PDB_INT32, transform_direction,
814
GIMP_PDB_INT32, interpolation,
815
GIMP_PDB_INT32, supersample,
816
GIMP_PDB_INT32, recursion_level,
817
GIMP_PDB_INT32, clip_result,
803
return_vals = gimp_run_procedure ("gimp-drawable-transform-2d",
805
GIMP_PDB_DRAWABLE, drawable_ID,
806
GIMP_PDB_FLOAT, source_x,
807
GIMP_PDB_FLOAT, source_y,
808
GIMP_PDB_FLOAT, scale_x,
809
GIMP_PDB_FLOAT, scale_y,
810
GIMP_PDB_FLOAT, angle,
811
GIMP_PDB_FLOAT, dest_x,
812
GIMP_PDB_FLOAT, dest_y,
813
GIMP_PDB_INT32, transform_direction,
814
GIMP_PDB_INT32, interpolation,
815
GIMP_PDB_INT32, supersample,
816
GIMP_PDB_INT32, recursion_level,
817
GIMP_PDB_INT32, clip_result,
820
820
if (return_vals[0].data.d_status == GIMP_PDB_SUCCESS)
821
821
ret_drawable_ID = return_vals[1].data.d_drawable;
849
849
* Since: GIMP 2.2
852
gimp_drawable_transform_2d_default (gint32 drawable_ID,
860
gboolean interpolate,
861
gboolean clip_result)
852
gimp_drawable_transform_2d_default (gint32 drawable_ID,
860
gboolean interpolate,
861
GimpTransformResize clip_result)
863
863
GimpParam *return_vals;
864
864
gint nreturn_vals;
865
865
gint32 ret_drawable_ID = -1;
867
return_vals = gimp_run_procedure ("gimp_drawable_transform_2d_default",
869
GIMP_PDB_DRAWABLE, drawable_ID,
870
GIMP_PDB_FLOAT, source_x,
871
GIMP_PDB_FLOAT, source_y,
872
GIMP_PDB_FLOAT, scale_x,
873
GIMP_PDB_FLOAT, scale_y,
874
GIMP_PDB_FLOAT, angle,
875
GIMP_PDB_FLOAT, dest_x,
876
GIMP_PDB_FLOAT, dest_y,
877
GIMP_PDB_INT32, interpolate,
878
GIMP_PDB_INT32, clip_result,
867
return_vals = gimp_run_procedure ("gimp-drawable-transform-2d-default",
869
GIMP_PDB_DRAWABLE, drawable_ID,
870
GIMP_PDB_FLOAT, source_x,
871
GIMP_PDB_FLOAT, source_y,
872
GIMP_PDB_FLOAT, scale_x,
873
GIMP_PDB_FLOAT, scale_y,
874
GIMP_PDB_FLOAT, angle,
875
GIMP_PDB_FLOAT, dest_x,
876
GIMP_PDB_FLOAT, dest_y,
877
GIMP_PDB_INT32, interpolate,
878
GIMP_PDB_INT32, clip_result,
881
881
if (return_vals[0].data.d_status == GIMP_PDB_SUCCESS)
882
882
ret_drawable_ID = return_vals[1].data.d_drawable;
898
898
* @coeff_2_0: coefficient (2,0) of the transformation matrix.
899
899
* @coeff_2_1: coefficient (2,1) of the transformation matrix.
900
900
* @coeff_2_2: coefficient (2,2) of the transformation matrix.
901
* @transform_direction: Direction of Transformation.
901
* @transform_direction: Direction of transformation.
902
902
* @interpolation: Type of interpolation.
903
903
* @supersample: Whether to perform supersample.
904
904
* @recursion_level: Level of recursion (3 is a nice default).
905
* @clip_result: Whether to clip results.
905
* @clip_result: How to clip results.
907
907
* Transform the specified drawable in 2d, with extra parameters.
923
923
gimp_drawable_transform_matrix (gint32 drawable_ID,
933
GimpTransformDirection transform_direction,
934
GimpInterpolationType interpolation,
935
gboolean supersample,
936
gint recursion_level,
937
gboolean clip_result)
933
GimpTransformDirection transform_direction,
934
GimpInterpolationType interpolation,
935
gboolean supersample,
936
gint recursion_level,
937
GimpTransformResize clip_result)
939
939
GimpParam *return_vals;
940
940
gint nreturn_vals;
941
941
gint32 ret_drawable_ID = -1;
943
return_vals = gimp_run_procedure ("gimp_drawable_transform_matrix",
945
GIMP_PDB_DRAWABLE, drawable_ID,
946
GIMP_PDB_FLOAT, coeff_0_0,
947
GIMP_PDB_FLOAT, coeff_0_1,
948
GIMP_PDB_FLOAT, coeff_0_2,
949
GIMP_PDB_FLOAT, coeff_1_0,
950
GIMP_PDB_FLOAT, coeff_1_1,
951
GIMP_PDB_FLOAT, coeff_1_2,
952
GIMP_PDB_FLOAT, coeff_2_0,
953
GIMP_PDB_FLOAT, coeff_2_1,
954
GIMP_PDB_FLOAT, coeff_2_2,
955
GIMP_PDB_INT32, transform_direction,
956
GIMP_PDB_INT32, interpolation,
957
GIMP_PDB_INT32, supersample,
958
GIMP_PDB_INT32, recursion_level,
959
GIMP_PDB_INT32, clip_result,
943
return_vals = gimp_run_procedure ("gimp-drawable-transform-matrix",
945
GIMP_PDB_DRAWABLE, drawable_ID,
946
GIMP_PDB_FLOAT, coeff_0_0,
947
GIMP_PDB_FLOAT, coeff_0_1,
948
GIMP_PDB_FLOAT, coeff_0_2,
949
GIMP_PDB_FLOAT, coeff_1_0,
950
GIMP_PDB_FLOAT, coeff_1_1,
951
GIMP_PDB_FLOAT, coeff_1_2,
952
GIMP_PDB_FLOAT, coeff_2_0,
953
GIMP_PDB_FLOAT, coeff_2_1,
954
GIMP_PDB_FLOAT, coeff_2_2,
955
GIMP_PDB_INT32, transform_direction,
956
GIMP_PDB_INT32, interpolation,
957
GIMP_PDB_INT32, supersample,
958
GIMP_PDB_INT32, recursion_level,
959
GIMP_PDB_INT32, clip_result,
962
962
if (return_vals[0].data.d_status == GIMP_PDB_SUCCESS)
963
963
ret_drawable_ID = return_vals[1].data.d_drawable;
993
993
* Since: GIMP 2.2
996
gimp_drawable_transform_matrix_default (gint32 drawable_ID,
1006
gboolean interpolate,
1007
gboolean clip_result)
996
gimp_drawable_transform_matrix_default (gint32 drawable_ID,
1006
gboolean interpolate,
1007
GimpTransformResize clip_result)
1009
1009
GimpParam *return_vals;
1010
1010
gint nreturn_vals;
1011
1011
gint32 ret_drawable_ID = -1;
1013
return_vals = gimp_run_procedure ("gimp_drawable_transform_matrix_default",
1015
GIMP_PDB_DRAWABLE, drawable_ID,
1016
GIMP_PDB_FLOAT, coeff_0_0,
1017
GIMP_PDB_FLOAT, coeff_0_1,
1018
GIMP_PDB_FLOAT, coeff_0_2,
1019
GIMP_PDB_FLOAT, coeff_1_0,
1020
GIMP_PDB_FLOAT, coeff_1_1,
1021
GIMP_PDB_FLOAT, coeff_1_2,
1022
GIMP_PDB_FLOAT, coeff_2_0,
1023
GIMP_PDB_FLOAT, coeff_2_1,
1024
GIMP_PDB_FLOAT, coeff_2_2,
1025
GIMP_PDB_INT32, interpolate,
1026
GIMP_PDB_INT32, clip_result,
1013
return_vals = gimp_run_procedure ("gimp-drawable-transform-matrix-default",
1015
GIMP_PDB_DRAWABLE, drawable_ID,
1016
GIMP_PDB_FLOAT, coeff_0_0,
1017
GIMP_PDB_FLOAT, coeff_0_1,
1018
GIMP_PDB_FLOAT, coeff_0_2,
1019
GIMP_PDB_FLOAT, coeff_1_0,
1020
GIMP_PDB_FLOAT, coeff_1_1,
1021
GIMP_PDB_FLOAT, coeff_1_2,
1022
GIMP_PDB_FLOAT, coeff_2_0,
1023
GIMP_PDB_FLOAT, coeff_2_1,
1024
GIMP_PDB_FLOAT, coeff_2_2,
1025
GIMP_PDB_INT32, interpolate,
1026
GIMP_PDB_INT32, clip_result,
1029
1029
if (return_vals[0].data.d_status == GIMP_PDB_SUCCESS)
1030
1030
ret_drawable_ID = return_vals[1].data.d_drawable;