Table of Contents

Method AutoScale

Namespace
Alternet.Common
Assembly
Alternet.Common.v9.dll

AutoScale(int)

Automatically scales the specified integer value accordingly to the screen resolution.

public static int AutoScale(int value)

Parameters

value int

Value to scale.

Returns

int

Scaled value if auto scaling enabled; otherwise original value.

AutoScale(int, float)

Automatically scales the specified integer value.

public static int AutoScale(int value, float scaleFrom)

Parameters

value int

Value to scale.

scaleFrom float

Specifies the scaling factor.

Returns

int

Scaled value.

AutoScale(float)

Automatically scales the specified float value.

public static float AutoScale(float value)

Parameters

value float

Value to scale.

Returns

float

Scaled value if auto scaling enabled; otherwise original value.

AutoScale(double, double)

Automatically scales the specified double value.

public static double AutoScale(double value, double scaleFrom)

Parameters

value double

Value to scale.

scaleFrom double

Specifies the scaling factor.

Returns

double

Scaled value.

AutoScale(double)

Automatically scales the doluble specified value.

public static double AutoScale(double value)

Parameters

value double

Value to scale.

Returns

double

Scaled value if auto scaling enabled; otherwise original value.

AutoScale(float, float)

Automatically scales the specified float value.

public static float AutoScale(float value, float scaleFrom)

Parameters

value float

Value to scale.

scaleFrom float

Specifies the scaling factor.

Returns

float

Scaled value.

AutoScale(Size)

Automatically scales the specified Size value.

public static Size AutoScale(Size value)

Parameters

value Size

Value to scale.

Returns

Size

Scaled value if auto scaling enabled; otherwise original value.

AutoScale(Size, float)

Automatically scales the specified Size value.

public static Size AutoScale(Size value, float scaleFrom)

Parameters

value Size

Value to scale.

scaleFrom float

Specifies the scaling factor.

Returns

Size

Scaled value.

AutoScale(Padding)

Automatically scales the specified Padding value.

public static Padding AutoScale(Padding value)

Parameters

value Padding

Value to scale.

Returns

Padding

Scaled value if auto scaling enabled; otherwise original value.

AutoScale(Padding, float)

Automatically scales the specified Padding value.

public static Padding AutoScale(Padding value, float scaleFrom)

Parameters

value Padding

Value to scale.

scaleFrom float

Specifies the scaling factor.

Returns

Padding

Scaled value.