Table of Contents

Method AsImageFor

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

AsImageFor(Control)

Get bitmap of the size appropriate for the DPI scaling used by the given control.

public virtual Image AsImageFor(Control control)

Parameters

control Control

Control to get DPI scaling factor from.

Returns

Image

Remarks

This helper function returns a (normally unscaled) bitmap from the ImageSet of the closest size to the size that should be used at the DPI scaling of the provided control.