Online Help for Chasys Photo
Automation : Scripting Transforms
Commands
All commands for transforms start with “xform_”. Here’s the listing of the available commands and their syntax:
| Command & Syntax | Details |
|---|---|
| xform_flip direction; | Flips the image. The direction of flip is set by the parameter direction [horz, vert]. |
xform_rotate angle; xform_rotate angle direction; xform_rotate angle direction sampling; |
Rotates the image by angle [0..360]. If angle is “90”, “180” or “270”, it performs the corresponding right-angled rotate. The second parameter, direction [CW, CCW], is optional; it specifies if the rotation is clockwise or counter-clockwise (default: CCW). The third parameter, sampling [blocky, smooth], is also optional; it specifies whether or not to resample during rotation (default: smooth). |
xform_skew angle direction; xform_skew angle direction sampling; |
Skews the image by angle [-90..90] in direction [horz, vert]. The third parameter, sampling [blocky, smooth], is optional. |
xform_perspective angle direction; xform_perspective angle direction sampling; |
Performs perspective distortion of the image by angle [-90..90] in direction [horz, vert]. The third parameter, sampling [blocky, smooth], is optional. |
| xform_scale factor; |
Scales the image heuristically by factor. Valid values for factor are 2, 3 and 4. |
| xform_stretch factor direction; | Stretches the image by factor [0.001..1000] in direction [x-only, y-only, both, alternate] |
| xform_tile sx sy; | Performs normal tiling by scaling the image by sx and sy. For example, setting both sx and sy to 2.0 will tile a 320*240 image to 640*480. |
| xform_kaleido sx sy; | Performs kaleidoscope tiling by scaling the image by sx and sy. For example, setting both sx and sy to 2.0 will tile a 320*240 image to 640*480. |
You can generate script code for most commands in Chasys Photo by using them while running the record function.