getDimensions.lua 521 B

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