Table of Contents

Method GetPreferredBitmapSizeFor

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

GetPreferredBitmapSizeFor(AbstractControl)

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

Parameters

control AbstractControl

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.