Canvas:getDimensions
Returns the dimensions of the Canvas, its Textures, and its depth buffer.
width, height = Canvas:getDimensions()
Arguments
None
Returns
Name | Type | Description |
width | number | The width of the Canvas, in pixels. |
height | number | The height of the Canvas, in pixels. |
Notes
The dimensions of a Canvas can not be changed after it is created.
See also
Canvas:getWidth
Canvas:getHeight
Canvas