plug-in-curve-bend

Wolfgang Hofer (hof@hotbot.com)

Description

Bend the image using two control curves

Help

This plug-in does bend the active layer If there is a current selection it is copied to floating selection and the curve_bend distortion is done on the floating selection. If work_on_copy parameter is TRUE, the curve_bend distortion is done on a copy of the active layer (or floating selection). The upper and lower edges are bent in shape of 2 spline curves. both (upper and lower) curves are determined by upto 17 points or by 256 Y-Values if curve_type == 1 (freehand mode) If rotation is not 0, the layer is rotated before and rotated back after the bend operation. This enables bending in other directions than vertical. bending usually changes the size of the handled layer. this plugin sets the offsets of the handled layer to keep its center at the same position


Type

unknown

Parameters

Type Name Description
PF_INT run-mode The run mode { RUN-INTERACTIVE (0), RUN-NONINTERACTIVE (1) }
PF_IMAGE image Input image
PF_DRAWABLE drawable Input drawable (must be a layer without layermask)
PF_FLOAT rotation Direction {angle 0 to 360 degree } of the bend effect
PF_INT smoothing Smoothing { TRUE, FALSE }
PF_INT antialias Antialias { TRUE, FALSE }
PF_INT work-on-copy { TRUE, FALSE } TRUE: copy the drawable and bend the copy
PF_INT curve-type { 0, 1 } 0 == smooth (use 17 points), 1 == freehand (use 256 val_y)
PF_INT argc-upper-point-x {2 <= argc <= 17}
unknown upper-point-x array of 17 x point_koords { 0.0 <= x <= 1.0 or -1 for unused point }
PF_INT argc-upper-point-y {2 <= argc <= 17}
unknown upper-point-y array of 17 y point_koords { 0.0 <= y <= 1.0 or -1 for unused point }
PF_INT argc-lower-point-x {2 <= argc <= 17}
unknown lower-point-x array of 17 x point_koords { 0.0 <= x <= 1.0 or -1 for unused point }
PF_INT argc-lower-point-y {2 <= argc <= 17}
unknown lower-point-y array of 17 y point_koords { 0.0 <= y <= 1.0 or -1 for unused point }
PF_INT argc-upper-val-y { 256 }
unknown upper-val-y array of 256 y freehand koord { 0 <= y <= 255 }
PF_INT argc-lower-val-y { 256 }
unknown lower-val-y array of 256 y freehand koord { 0 <= y <= 255 }

Return

Type Name Description
PF_LAYER bent-layer the handled layer