Function Surface.size

Gets the size of the dsdl.Surface in pixels

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

Returns

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