Table of Contents

Method GetDefaultImageSize

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

GetDefaultImageSize(double)

Returns suggested toolbar image size depending on the given DPI value.

public static int GetDefaultImageSize(double deviceDpi)

Parameters

deviceDpi double

DPI for which default image size is returned.

Returns

int

GetDefaultImageSize(Control?)

Returns suggested toolbar image size in pixels depending on the given DPI value.

public static SizeI GetDefaultImageSize(Control? control = null)

Parameters

control Control

Control's GetDPI() method is used to get DPI settings.

Returns

SizeI

GetDefaultImageSize(SizeD)

Returns suggested toolbar image size depending on the given DPI value.

public static SizeI GetDefaultImageSize(SizeD deviceDpi)

Parameters

deviceDpi SizeD

DPI for which default image size is returned.

Returns

SizeI