| Components | All | New | MacOS | Windows | Linux | iOS | ||||
| Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old | |
GMImage.AffineTransform
Transform image by specified affine (or free transform) matrix.
| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
| GraphicsMagick | 16.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "GMImage.AffineTransform"; ImageRef { ; sx; sy; rx; ry; tx; ty } ) More
Parameters
| Parameter | Description | Example | Flags |
|---|---|---|---|
| ImageRef | The image reference number. | 1 | |
| sx | The x scale factors. Default is 1. |
1 | Optional |
| sy | The y scale factors. Default is 1. |
1 | Optional |
| rx | The x rotate factors. | 0 | Optional |
| ry | The y rotate factors. | 0 | Optional |
| tx | The x translation value. | 0 | Optional |
| ty | The y translation value. | 0 | Optional |
Result
Returns OK or error.
Description
Transform image by specified affine (or free transform) matrix.See also
Release notes
- Version 16.2
- Added GMImage.AffineTransform function.
Blog Entries
This function checks for a license.
Created 30th March 2026, last changed 10th April 2026