Function Surface.size

Gets the size of the dsdl2.Surface in pixels

uint[2] size() @property @trusted const;

Returns

array of width and height of the dsdl2.Surface in pixels