lib/chunky_png/datastream.rb in chunky_png-0.10.5 vs lib/chunky_png/datastream.rb in chunky_png-0.11.0
- old
+ new
@@ -139,9 +139,15 @@
other_chunks.select do |chunk|
metadata[chunk.keyword] = chunk.value if chunk.respond_to?(:keyword)
end
metadata
end
+
+ # Returns the uncompressed image data, combined from all the IDAT chunks
+ # @return [String] The uncompressed image data for this datastream
+ def imagedata
+ ChunkyPNG::Chunk::ImageData.combine_chunks(data_chunks)
+ end
##################################################################################
# WRITING DATASTREAMS
##################################################################################