Table of Contents

Method GetDefaultImageSize

Namespace
Alternet.UI
Assembly
Alternet.UI.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(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

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()

Returns suggested toolbar image size depending on the current DPI.

public int GetDefaultImageSize()

Returns

int