Table of Contents

Method GetPreferredBitmapSizeAtScale

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

GetPreferredBitmapSizeAtScale(double)

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

public virtual SizeI GetPreferredBitmapSizeAtScale(double scale)

Parameters

scale double

Returns

SizeI

Remarks

Passing a size returned by this function to AsImage(SizeI) ensures that bitmap doesn't need to be rescaled, which typically significantly lowers its quality.