Sha256: 40349f7243536db1c0364d139c51e1f2f5bbfc13587fe0fe65e0d45f91826aa9
Contents?: true
Size: 221 Bytes
Versions: 1
Compression:
Stored size: 221 Bytes
Contents
module ChunkyPNG class Canvas # Methods to export a canvas to a PNG data URL. module DataUrlExporting def to_data_url ['data:image/png;base64,', to_blob].pack('A*m0') end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
chunky_png-1.2.2 | lib/chunky_png/canvas/data_url_exporting.rb |