Function Surface.dimensions

Gets the surfaces dimensions as a vector with width as the x component and height as the y component

Vector!(int,2) dimensions() @property;