# File lib/png.rb, line 192 def to_blob blob = [] header = [@width, @height, @bits, RGBA, NONE, NONE, NONE] blob << SIGNATURE blob << PNG.chunk('IHDR', header.pack("N2C5")) blob << PNG.chunk('IDAT', Zlib::Deflate.deflate(self.png_join)) blob << PNG.chunk('IEND', '') blob.join end