get Transformation Matrix
open fun getTransformationMatrix( srcWidth: Int, srcHeight: Int, dstWidth: Int, dstHeight: Int, applyRotation: Int, maintainAspectRatio: Boolean): Matrix
Content copied to clipboard
Returns a transformation matrix from one reference frame into another. Handles cropping (if maintaining aspect ratio is desired) and rotation.
Return
The transformation fulfilling the desired requirements.
Parameters
src Width
Width of source frame.
src Height
Height of source frame.
dst Width
Width of destination frame.
dst Height
Height of destination frame.
apply Rotation
Amount of rotation to apply from one frame to another. Must be a multiple of 90.
maintain Aspect Ratio
If true, will ensure that scaling in x and y remains constant, cropping the image if necessary.