compass/src/test/testData/gems/compass-0.13.alpha.2/lib/compass/grid_builder.rb
def to_blob
      blob = []
      blob <<  [137, 80, 78, 71, 13, 10, 26, 10].pack("C*")
      blob << PNG.chunk('IHDR', [@width, @height, BITS, RGB, NONE, NONE, NONE].pack("N2C5"))
      blob << PNG.chunk('IDAT', Zlib::Deflate.deflate(self.png_join))
      blob << PNG.chunk('IEND', '')
      blob.join
    end
# binary representation of the PNG, write to file with binary mode
binary representation of the PNG, write to file with binary mode
binary representation of the PNG write to file with binary mode
def to_blob
      blob = []
      blob <<  [137, 80, 78, 71, 13, 10, 26, 10].pack("C*")
      blob << PNG.chunk('IHDR', [@width, @height, BITS, RGB, NONE, NONE, NONE].pack("N2C5"))
      blob << PNG.chunk('IDAT', Zlib::Deflate.deflate(self.png_join))
      blob << PNG.chunk('IEND', '')
      blob.join
    end
def to_blob blob = [ ] blob << [ 137 , 80 , 78 , 71 , 13 , 10 , 26 , 10 ] . pack ( "C*" ) blob << PNG . chunk ( 'IHDR' , [ @width , @height , BITS , RGB , NONE , NONE , NONE ] . pack ( "N2C5" ) ) blob << PNG . chunk ( 'IDAT' , Zlib :: Deflate . deflate ( self . png_join ) ) blob << PNG . chunk ( 'IEND' , '' ) blob . join end
binary representation of the PNG, write to file with binary mode
binary representation of the PNG write to file with binary mode