Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Static method: Bitmap DrawBitmap(int, int, Action<Graphics>, bool)

Declaration

public static Bitmap DrawBitmap(
    int width,
    int height,
    Action<Graphics> draw,
    bool keepLowQuality = false
)

Summary

Creates a new bitmap by executing the specified drawing command(s) on a blank new 32-bit bitmap.

Parameters

intwidth Width of the bitmap.
intheight Height of the bitmap.
Action<Graphics>draw Command(s) to execute on the new bitmap.
boolkeepLowQuality If false (the default), GraphicsUtil.SetHighQuality(this Graphics) is called on the graphics object automatically.