Transform
Applies linear transformations to an image, such as scaling, rotation, skewing, or warping, altering its shape or orientation.
🖼️ Image options and parameters of transform
method
transform
method uses transformation matrix to rotate, translate, and/or scale the image. User needs to pass on the matrix that will be applied to the image. Matrix must have 2 rows and 3 columns:
Where the first two columns are responsible for image rotation and shear, while last column is responsible for image translation.
caution
Matrix cannot be singular. Otherwise it cannot be inverted. Click here to learn more.


Parameters and its default values
transformMatrix
options
Options
Property | Required | Default value |
---|---|---|
borderType | no | constant |
borderValue | no | 0 |
fullImage | no | - |
height | no | - |
interpolationType | no | bilinear |
inverse | no | - |
width | no | - |