getDimensions.lua 549 B

1234567891011121314151617181920212223242526
  1. return {
  2. summary = 'Get the dimensions of the Image.',
  3. description = 'Returns the dimensions of the Image, in pixels.',
  4. arguments = {},
  5. returns = {
  6. width = {
  7. type = 'number',
  8. description = 'The width of the Image, in pixels.'
  9. },
  10. height = {
  11. type = 'number',
  12. description = 'The height of the Image, in pixels.'
  13. }
  14. },
  15. variants = {
  16. {
  17. arguments = {},
  18. returns = { 'width', 'height' }
  19. }
  20. },
  21. related = {
  22. 'Image:getWidth',
  23. 'Image:getHeight',
  24. 'Texture:getDimensions'
  25. }
  26. }