Table of Contents

Method GetPreferredBitmapSizeFor

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

GetPreferredBitmapSizeFor(Control)

Get the size that would be best to use for this ImageSet at the DPI scaling factor used by the given control.

public virtual SizeI GetPreferredBitmapSizeFor(Control control)

Parameters

control Control

Control to get DPI scaling factor from.

Returns

SizeI

Remarks

This is just a convenient wrapper for GetPreferredBitmapSizeAtScale(double) calling that function with the result of ScaleFactor.