Declaring Type: ImageUtils
Namespace: Mindee.Image
Assembly: Mindee
Assembly Version: 3.22.0+aa1b44d54eab23ff2156f9ad9391c70a961697c0
Computes the new dimensions for a given SKBitmap, and returns a scaled down version of it relative to the provided bounds.
public static ValueTuple<int, int> CalculateNewDimensions(SKBitmap original, int? maxWidth = null, int? maxHeight = null);
original
SKBitmap
Input SKBitmap.
maxWidth
Nullable<int>
Optional max width.
maxHeight
Nullable<int>
Optional max height.
ValueTuple<int, int>
The scaled down dimensions for the SKBitmap.
Throws if the bitmap is null.
Documentation generated by MdDocs