Method AsImageFor
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
ControlControl to get DPI scaling factor from.
Returns
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.