Method GetAsBitmap
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
messageBoxIconMessageBoxIcon?The message box icon identifier.
sizeint?Image size.
controlAbstractControlThe control for which bitmap is requested. Used to get scale factor. Optional. If not specified, default scale factor is used.