Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4   13.5    Statistic    FMM    Blog  

GMImage.Affine

Applies an affine transformation.

Component Version macOS Windows Linux Server iOS SDK
GraphicsMagick 4.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "GMImage.Affine"; ImageRef; sx; sy; rx; ry; tx; ty )   More

Parameters

Parameter Description Example
ImageRef The image reference number. 1
sx The x scale factors. 1
sy The y scale factors. 1
rx The x rotate factors. 0
ry The y rotate factors. 0
tx The x translation value. 0
ty The y translation value. 0

Result

Returns OK or error.

Description

Applies an affine transformation.
Specify a transformation matrix to adjust scaling, rotation, and translation (coordinate transformation) for subsequently drawn objects in the same or decendent drawing context. The sx & sy parameters represent the x & y scale factors, the rx & ry parameters represent the x & y rotation, and the tx & ty parameters represent the x & y translation:

See also

This function checks for a license.

Created 18th August 2014, last changed 18th August 2014


GMImage.AddPathSmoothQuadraticCurvetoRel - GMImage.Annotate

💬 Ask a question or report a problem