Table of Contents

Method GetAsBitmap

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

GetAsBitmap(MessageBoxIcon?, int?, AbstractControl?)

Gets bitmap as Image for the specified message box icon. If bitmap size is not specified, gets bitmap for the default toolbar image size.

public static Image? GetAsBitmap(MessageBoxIcon? messageBoxIcon, int? size = null, AbstractControl? control = null)

Parameters

messageBoxIcon MessageBoxIcon?

The message box icon identifier.

size int?

Image size.

control AbstractControl

The control for which bitmap is requested. Used to get scale factor. Optional. If not specified, default scale factor is used.

Returns

Image