MeasureUtils
Functions
Measure according to an aspect ratio an width and height constraints. This version of measureWithAspectRatio will respect the intrinsic size of the component being measured.
Measure according to an aspect ratio an width and height constraints.
Measure according to an aspect ratio an width and height constraints. This version of measureWithAspectRatio will respect the intrinsic size of the component being measured.
Set the outputSize to respect both Specs and the desired width and height. The desired size is usually the necessary pixels to render the inner content.
Set the outputSize to respect both size specs and try to keep both width and height equal. This will only not guarantee equal width and height if these specs use modes and sizes which prevent it.