Canvas:getDimensions

Returns the dimensions of the Canvas, its Textures, and its depth buffer.

width, height = Canvas:getDimensions()

Arguments

None

Returns

NameTypeDescription
widthnumberThe width of the Canvas, in pixels.
heightnumberThe height of the Canvas, in pixels.

Notes

The dimensions of a Canvas can not be changed after it is created.

See also