encode.lua 417 B

1234567891011121314151617181920
  1. return {
  2. summary = 'Encode the Image as png.',
  3. description = 'Encodes the Image to an uncompressed png. This intended mainly for debugging.',
  4. arguments = {},
  5. returns = {
  6. blob = {
  7. type = 'Blob',
  8. description = 'A new Blob containing the PNG image data.'
  9. }
  10. },
  11. variants = {
  12. {
  13. arguments = {},
  14. returns = { 'blob' }
  15. }
  16. },
  17. related = {
  18. 'lovr.filesystem.write'
  19. }
  20. }