FileHelper.RatioFlex Method

Namespace:
Weavy.Core.Helpers
Assembly:
Weavy.Core.dll

RatioFlex(double, double, double, bool)

Get the flex properties to resize/scale based on the ratio.

public static string RatioFlex(double ratio, double baseWidth, double maxHeight, bool keepBaseWidthMin = false)

Parameters

ratio
double

The image ratio.

baseWidth
double

The base width to calculate on.

maxHeight
double
keepBaseWidthMin
bool

Returns

string

The flex properties as CSS styles.