Surface.this

this(int width, int height, IStr file = __FILE__, Sz line = __LINE__) @safe nothrow

Creates a new surface with the specified width, and height.

this(Rgba[] pixels, int width, int height)

Creates a new surface with the specified pixels, width, and height.