46
46
gimp_airbrush (gint32 drawable_ID,
49
const gdouble *strokes)
49
const gdouble *strokes)
51
51
GimpParam *return_vals;
53
53
gboolean success = TRUE;
55
return_vals = gimp_run_procedure ("gimp_airbrush",
57
GIMP_PDB_DRAWABLE, drawable_ID,
58
GIMP_PDB_FLOAT, pressure,
59
GIMP_PDB_INT32, num_strokes,
60
GIMP_PDB_FLOATARRAY, strokes,
55
return_vals = gimp_run_procedure ("gimp-airbrush",
57
GIMP_PDB_DRAWABLE, drawable_ID,
58
GIMP_PDB_FLOAT, pressure,
59
GIMP_PDB_INT32, num_strokes,
60
GIMP_PDB_FLOATARRAY, strokes,
63
63
success = return_vals[0].data.d_status == GIMP_PDB_SUCCESS;
77
77
* is time-dependent.
79
79
* This tool simulates the use of an airbrush. It is similar to
80
* gimp_airbrush except that the pressure is derived from the airbrush
81
* tools options box. It the option has not been set the default for
82
* the option will be used.
80
* gimp_airbrush() except that the pressure is derived from the
81
* airbrush tools options box. It the option has not been set the
82
* default for the option will be used.
84
84
* Returns: TRUE on success.
87
87
gimp_airbrush_default (gint32 drawable_ID,
89
const gdouble *strokes)
89
const gdouble *strokes)
91
91
GimpParam *return_vals;
93
93
gboolean success = TRUE;
95
return_vals = gimp_run_procedure ("gimp_airbrush_default",
97
GIMP_PDB_DRAWABLE, drawable_ID,
98
GIMP_PDB_INT32, num_strokes,
99
GIMP_PDB_FLOATARRAY, strokes,
95
return_vals = gimp_run_procedure ("gimp-airbrush-default",
97
GIMP_PDB_DRAWABLE, drawable_ID,
98
GIMP_PDB_INT32, num_strokes,
99
GIMP_PDB_FLOATARRAY, strokes,
102
102
success = return_vals[0].data.d_status == GIMP_PDB_SUCCESS;
137
137
gimp_clone (gint32 drawable_ID,
138
gint32 src_drawable_ID,
139
GimpCloneType clone_type,
143
const gdouble *strokes)
138
gint32 src_drawable_ID,
139
GimpCloneType clone_type,
143
const gdouble *strokes)
145
145
GimpParam *return_vals;
146
146
gint nreturn_vals;
147
147
gboolean success = TRUE;
149
return_vals = gimp_run_procedure ("gimp_clone",
151
GIMP_PDB_DRAWABLE, drawable_ID,
152
GIMP_PDB_DRAWABLE, src_drawable_ID,
153
GIMP_PDB_INT32, clone_type,
154
GIMP_PDB_FLOAT, src_x,
155
GIMP_PDB_FLOAT, src_y,
156
GIMP_PDB_INT32, num_strokes,
157
GIMP_PDB_FLOATARRAY, strokes,
149
return_vals = gimp_run_procedure ("gimp-clone",
151
GIMP_PDB_DRAWABLE, drawable_ID,
152
GIMP_PDB_DRAWABLE, src_drawable_ID,
153
GIMP_PDB_INT32, clone_type,
154
GIMP_PDB_FLOAT, src_x,
155
GIMP_PDB_FLOAT, src_y,
156
GIMP_PDB_INT32, num_strokes,
157
GIMP_PDB_FLOATARRAY, strokes,
160
160
success = return_vals[0].data.d_status == GIMP_PDB_SUCCESS;
175
175
* This tool clones (copies) from the source drawable starting at the
176
176
* specified source coordinates to the dest drawable. This function
177
* performs exactly the same as the gimp_clone function except that the
178
* tools arguments are obtained from the clones option dialog. It this
179
* dialog has not been activated then the dialogs default values will
177
* performs exactly the same as the gimp_clone() function except that
178
* the tools arguments are obtained from the clones option dialog. It
179
* this dialog has not been activated then the dialogs default values
182
182
* Returns: TRUE on success.
185
185
gimp_clone_default (gint32 drawable_ID,
187
const gdouble *strokes)
187
const gdouble *strokes)
189
189
GimpParam *return_vals;
190
190
gint nreturn_vals;
191
191
gboolean success = TRUE;
193
return_vals = gimp_run_procedure ("gimp_clone_default",
195
GIMP_PDB_DRAWABLE, drawable_ID,
196
GIMP_PDB_INT32, num_strokes,
197
GIMP_PDB_FLOATARRAY, strokes,
193
return_vals = gimp_run_procedure ("gimp-clone-default",
195
GIMP_PDB_DRAWABLE, drawable_ID,
196
GIMP_PDB_INT32, num_strokes,
197
GIMP_PDB_FLOATARRAY, strokes,
200
200
success = return_vals[0].data.d_status == GIMP_PDB_SUCCESS;
225
225
gimp_convolve (gint32 drawable_ID,
227
GimpConvolveType convolve_type,
229
const gdouble *strokes)
227
GimpConvolveType convolve_type,
229
const gdouble *strokes)
231
231
GimpParam *return_vals;
232
232
gint nreturn_vals;
233
233
gboolean success = TRUE;
235
return_vals = gimp_run_procedure ("gimp_convolve",
237
GIMP_PDB_DRAWABLE, drawable_ID,
238
GIMP_PDB_FLOAT, pressure,
239
GIMP_PDB_INT32, convolve_type,
240
GIMP_PDB_INT32, num_strokes,
241
GIMP_PDB_FLOATARRAY, strokes,
235
return_vals = gimp_run_procedure ("gimp-convolve",
237
GIMP_PDB_DRAWABLE, drawable_ID,
238
GIMP_PDB_FLOAT, pressure,
239
GIMP_PDB_INT32, convolve_type,
240
GIMP_PDB_INT32, num_strokes,
241
GIMP_PDB_FLOATARRAY, strokes,
244
244
success = return_vals[0].data.d_status == GIMP_PDB_SUCCESS;
259
259
* This tool convolves the specified drawable with either a sharpening
260
260
* or blurring kernel. This function performs exactly the same as the
261
* gimp_convolve function except that the tools arguments are obtained
262
* from the convolve option dialog. It this dialog has not been
263
* activated then the dialogs default values will be used.
261
* gimp_convolve() function except that the tools arguments are
262
* obtained from the convolve option dialog. It this dialog has not
263
* been activated then the dialogs default values will be used.
265
265
* Returns: TRUE on success.
268
268
gimp_convolve_default (gint32 drawable_ID,
270
const gdouble *strokes)
270
const gdouble *strokes)
272
272
GimpParam *return_vals;
273
273
gint nreturn_vals;
274
274
gboolean success = TRUE;
276
return_vals = gimp_run_procedure ("gimp_convolve_default",
278
GIMP_PDB_DRAWABLE, drawable_ID,
279
GIMP_PDB_INT32, num_strokes,
280
GIMP_PDB_FLOATARRAY, strokes,
276
return_vals = gimp_run_procedure ("gimp-convolve-default",
278
GIMP_PDB_DRAWABLE, drawable_ID,
279
GIMP_PDB_INT32, num_strokes,
280
GIMP_PDB_FLOATARRAY, strokes,
283
283
success = return_vals[0].data.d_status == GIMP_PDB_SUCCESS;
306
306
gimp_dodgeburn (gint32 drawable_ID,
308
GimpDodgeBurnType dodgeburn_type,
309
GimpTransferMode dodgeburn_mode,
311
const gdouble *strokes)
308
GimpDodgeBurnType dodgeburn_type,
309
GimpTransferMode dodgeburn_mode,
311
const gdouble *strokes)
313
313
GimpParam *return_vals;
314
314
gint nreturn_vals;
315
315
gboolean success = TRUE;
317
return_vals = gimp_run_procedure ("gimp_dodgeburn",
319
GIMP_PDB_DRAWABLE, drawable_ID,
320
GIMP_PDB_FLOAT, exposure,
321
GIMP_PDB_INT32, dodgeburn_type,
322
GIMP_PDB_INT32, dodgeburn_mode,
323
GIMP_PDB_INT32, num_strokes,
324
GIMP_PDB_FLOATARRAY, strokes,
317
return_vals = gimp_run_procedure ("gimp-dodgeburn",
319
GIMP_PDB_DRAWABLE, drawable_ID,
320
GIMP_PDB_FLOAT, exposure,
321
GIMP_PDB_INT32, dodgeburn_type,
322
GIMP_PDB_INT32, dodgeburn_mode,
323
GIMP_PDB_INT32, num_strokes,
324
GIMP_PDB_FLOATARRAY, strokes,
327
327
success = return_vals[0].data.d_status == GIMP_PDB_SUCCESS;
338
338
* @strokes: Array of stroke coordinates: { s1.x, s1.y, s2.x, s2.y, ..., sn.x, sn.y }.
340
340
* Dodgeburn image with varying exposure. This is the same as the
341
* gimp_dodgeburn function except that the exposure, type and mode are
342
* taken from the tools option dialog. If the dialog has not been
341
* gimp_dodgeburn() function except that the exposure, type and mode
342
* are taken from the tools option dialog. If the dialog has not been
343
343
* activated then the defaults as used by the dialog will be used.
345
345
* Dodgeburn. More details here later.
350
350
gimp_dodgeburn_default (gint32 drawable_ID,
352
const gdouble *strokes)
352
const gdouble *strokes)
354
354
GimpParam *return_vals;
355
355
gint nreturn_vals;
356
356
gboolean success = TRUE;
358
return_vals = gimp_run_procedure ("gimp_dodgeburn_default",
360
GIMP_PDB_DRAWABLE, drawable_ID,
361
GIMP_PDB_INT32, num_strokes,
362
GIMP_PDB_FLOATARRAY, strokes,
358
return_vals = gimp_run_procedure ("gimp-dodgeburn-default",
360
GIMP_PDB_DRAWABLE, drawable_ID,
361
GIMP_PDB_INT32, num_strokes,
362
GIMP_PDB_FLOATARRAY, strokes,
365
365
success = return_vals[0].data.d_status == GIMP_PDB_SUCCESS;
391
391
gimp_eraser (gint32 drawable_ID,
393
const gdouble *strokes,
394
GimpBrushApplicationMode hardness,
395
GimpPaintApplicationMode method)
393
const gdouble *strokes,
394
GimpBrushApplicationMode hardness,
395
GimpPaintApplicationMode method)
397
397
GimpParam *return_vals;
398
398
gint nreturn_vals;
399
399
gboolean success = TRUE;
401
return_vals = gimp_run_procedure ("gimp_eraser",
403
GIMP_PDB_DRAWABLE, drawable_ID,
404
GIMP_PDB_INT32, num_strokes,
405
GIMP_PDB_FLOATARRAY, strokes,
406
GIMP_PDB_INT32, hardness,
407
GIMP_PDB_INT32, method,
401
return_vals = gimp_run_procedure ("gimp-eraser",
403
GIMP_PDB_DRAWABLE, drawable_ID,
404
GIMP_PDB_INT32, num_strokes,
405
GIMP_PDB_FLOATARRAY, strokes,
406
GIMP_PDB_INT32, hardness,
407
GIMP_PDB_INT32, method,
410
410
success = return_vals[0].data.d_status == GIMP_PDB_SUCCESS;
434
434
gimp_eraser_default (gint32 drawable_ID,
436
const gdouble *strokes)
438
GimpParam *return_vals;
440
gboolean success = TRUE;
442
return_vals = gimp_run_procedure ("gimp_eraser_default",
444
GIMP_PDB_DRAWABLE, drawable_ID,
445
GIMP_PDB_INT32, num_strokes,
446
GIMP_PDB_FLOATARRAY, strokes,
436
const gdouble *strokes)
438
GimpParam *return_vals;
440
gboolean success = TRUE;
442
return_vals = gimp_run_procedure ("gimp-eraser-default",
444
GIMP_PDB_DRAWABLE, drawable_ID,
445
GIMP_PDB_INT32, num_strokes,
446
GIMP_PDB_FLOATARRAY, strokes,
449
success = return_vals[0].data.d_status == GIMP_PDB_SUCCESS;
451
gimp_destroy_params (return_vals, nreturn_vals);
458
* @drawable_ID: The affected drawable.
459
* @src_drawable_ID: The source drawable.
460
* @src_x: The x coordinate in the source image.
461
* @src_y: The y coordinate in the source image.
462
* @num_strokes: Number of stroke control points (count each coordinate as 2 points).
463
* @strokes: Array of stroke coordinates: { s1.x, s1.y, s2.x, s2.y, ..., sn.x, sn.y }.
465
* Heal from the source to the dest drawable using the current brush
467
* This tool heals the source drawable starting at the specified source
468
* coordinates to the dest drawable. For image healing, if the sum of
469
* the src coordinates and subsequent stroke offsets exceeds the
470
* extents of the src drawable, then no paint is transferred. The
471
* healing tool is capable of transforming between any image types
472
* except RGB->Indexed.
474
* Returns: TRUE on success.
479
gimp_heal (gint32 drawable_ID,
480
gint32 src_drawable_ID,
484
const gdouble *strokes)
486
GimpParam *return_vals;
488
gboolean success = TRUE;
490
return_vals = gimp_run_procedure ("gimp-heal",
492
GIMP_PDB_DRAWABLE, drawable_ID,
493
GIMP_PDB_DRAWABLE, src_drawable_ID,
494
GIMP_PDB_FLOAT, src_x,
495
GIMP_PDB_FLOAT, src_y,
496
GIMP_PDB_INT32, num_strokes,
497
GIMP_PDB_FLOATARRAY, strokes,
500
success = return_vals[0].data.d_status == GIMP_PDB_SUCCESS;
502
gimp_destroy_params (return_vals, nreturn_vals);
509
* @drawable_ID: The affected drawable.
510
* @num_strokes: Number of stroke control points (count each coordinate as 2 points).
511
* @strokes: Array of stroke coordinates: { s1.x, s1.y, s2.x, s2.y, ..., sn.x, sn.y }.
513
* Heal from the source to the dest drawable using the current brush
515
* This tool heals from the source drawable starting at the specified
516
* source coordinates to the dest drawable. This function performs
517
* exactly the same as the gimp_heal() function except that the tools
518
* arguments are obtained from the healing option dialog. It this
519
* dialog has not been activated then the dialogs default values will
522
* Returns: TRUE on success.
527
gimp_heal_default (gint32 drawable_ID,
529
const gdouble *strokes)
531
GimpParam *return_vals;
533
gboolean success = TRUE;
535
return_vals = gimp_run_procedure ("gimp-heal-default",
537
GIMP_PDB_DRAWABLE, drawable_ID,
538
GIMP_PDB_INT32, num_strokes,
539
GIMP_PDB_FLOATARRAY, strokes,
449
542
success = return_vals[0].data.d_status == GIMP_PDB_SUCCESS;
468
561
* This tool is the standard paintbrush. It draws linearly interpolated
469
562
* lines through the specified stroke coordinates. It operates on the
470
563
* specified drawable in the foreground color with the active brush.
471
* The \"fade_out\" parameter is measured in pixels and allows the
472
* brush stroke to linearly fall off. The pressure is set to the
473
* maximum at the beginning of the stroke. As the distance of the
474
* stroke nears the fade_out value, the pressure will approach zero.
475
* The gradient_length is the distance to spread the gradient over. It
476
* is measured in pixels. If the gradient_length is 0, no gradient is
564
* The 'fade-out' parameter is measured in pixels and allows the brush
565
* stroke to linearly fall off. The pressure is set to the maximum at
566
* the beginning of the stroke. As the distance of the stroke nears the
567
* fade-out value, the pressure will approach zero. The gradient-length
568
* is the distance to spread the gradient over. It is measured in
569
* pixels. If the gradient-length is 0, no gradient is used.
479
571
* Returns: TRUE on success.
482
574
gimp_paintbrush (gint32 drawable_ID,
485
const gdouble *strokes,
486
GimpPaintApplicationMode method,
487
gdouble gradient_length)
577
const gdouble *strokes,
578
GimpPaintApplicationMode method,
579
gdouble gradient_length)
489
581
GimpParam *return_vals;
490
582
gint nreturn_vals;
491
583
gboolean success = TRUE;
493
return_vals = gimp_run_procedure ("gimp_paintbrush",
495
GIMP_PDB_DRAWABLE, drawable_ID,
496
GIMP_PDB_FLOAT, fade_out,
497
GIMP_PDB_INT32, num_strokes,
498
GIMP_PDB_FLOATARRAY, strokes,
499
GIMP_PDB_INT32, method,
500
GIMP_PDB_FLOAT, gradient_length,
585
return_vals = gimp_run_procedure ("gimp-paintbrush",
587
GIMP_PDB_DRAWABLE, drawable_ID,
588
GIMP_PDB_FLOAT, fade_out,
589
GIMP_PDB_INT32, num_strokes,
590
GIMP_PDB_FLOATARRAY, strokes,
591
GIMP_PDB_INT32, method,
592
GIMP_PDB_FLOAT, gradient_length,
503
595
success = return_vals[0].data.d_status == GIMP_PDB_SUCCESS;
521
613
* This tool is similar to the standard paintbrush. It draws linearly
522
614
* interpolated lines through the specified stroke coordinates. It
523
615
* operates on the specified drawable in the foreground color with the
524
* active brush. The \"fade_out\" parameter is measured in pixels and
616
* active brush. The 'fade-out' parameter is measured in pixels and
525
617
* allows the brush stroke to linearly fall off (value obtained from
526
618
* the option dialog). The pressure is set to the maximum at the
527
619
* beginning of the stroke. As the distance of the stroke nears the
528
* fade_out value, the pressure will approach zero. The gradient_length
620
* fade-out value, the pressure will approach zero. The gradient-length
529
621
* (value obtained from the option dialog) is the distance to spread
530
* the gradient over. It is measured in pixels. If the gradient_length
622
* the gradient over. It is measured in pixels. If the gradient-length
531
623
* is 0, no gradient is used.
533
625
* Returns: TRUE on success.
536
628
gimp_paintbrush_default (gint32 drawable_ID,
538
const gdouble *strokes)
630
const gdouble *strokes)
540
632
GimpParam *return_vals;
541
633
gint nreturn_vals;
542
634
gboolean success = TRUE;
544
return_vals = gimp_run_procedure ("gimp_paintbrush_default",
546
GIMP_PDB_DRAWABLE, drawable_ID,
547
GIMP_PDB_INT32, num_strokes,
548
GIMP_PDB_FLOATARRAY, strokes,
636
return_vals = gimp_run_procedure ("gimp-paintbrush-default",
638
GIMP_PDB_DRAWABLE, drawable_ID,
639
GIMP_PDB_INT32, num_strokes,
640
GIMP_PDB_FLOATARRAY, strokes,
551
643
success = return_vals[0].data.d_status == GIMP_PDB_SUCCESS;
576
668
gimp_pencil (gint32 drawable_ID,
578
const gdouble *strokes)
670
const gdouble *strokes)
580
672
GimpParam *return_vals;
581
673
gint nreturn_vals;
582
674
gboolean success = TRUE;
584
return_vals = gimp_run_procedure ("gimp_pencil",
586
GIMP_PDB_DRAWABLE, drawable_ID,
587
GIMP_PDB_INT32, num_strokes,
588
GIMP_PDB_FLOATARRAY, strokes,
676
return_vals = gimp_run_procedure ("gimp-pencil",
678
GIMP_PDB_DRAWABLE, drawable_ID,
679
GIMP_PDB_INT32, num_strokes,
680
GIMP_PDB_FLOATARRAY, strokes,
591
683
success = return_vals[0].data.d_status == GIMP_PDB_SUCCESS;
614
706
gimp_smudge (gint32 drawable_ID,
617
const gdouble *strokes)
709
const gdouble *strokes)
619
711
GimpParam *return_vals;
620
712
gint nreturn_vals;
621
713
gboolean success = TRUE;
623
return_vals = gimp_run_procedure ("gimp_smudge",
625
GIMP_PDB_DRAWABLE, drawable_ID,
626
GIMP_PDB_FLOAT, pressure,
627
GIMP_PDB_INT32, num_strokes,
628
GIMP_PDB_FLOATARRAY, strokes,
715
return_vals = gimp_run_procedure ("gimp-smudge",
717
GIMP_PDB_DRAWABLE, drawable_ID,
718
GIMP_PDB_FLOAT, pressure,
719
GIMP_PDB_INT32, num_strokes,
720
GIMP_PDB_FLOATARRAY, strokes,
631
723
success = return_vals[0].data.d_status == GIMP_PDB_SUCCESS;
654
746
gimp_smudge_default (gint32 drawable_ID,
656
const gdouble *strokes)
748
const gdouble *strokes)
658
750
GimpParam *return_vals;
659
751
gint nreturn_vals;
660
752
gboolean success = TRUE;
662
return_vals = gimp_run_procedure ("gimp_smudge_default",
664
GIMP_PDB_DRAWABLE, drawable_ID,
665
GIMP_PDB_INT32, num_strokes,
666
GIMP_PDB_FLOATARRAY, strokes,
754
return_vals = gimp_run_procedure ("gimp-smudge-default",
756
GIMP_PDB_DRAWABLE, drawable_ID,
757
GIMP_PDB_INT32, num_strokes,
758
GIMP_PDB_FLOATARRAY, strokes,
669
761
success = return_vals[0].data.d_status == GIMP_PDB_SUCCESS;