lib/image_voodoo.rb in image_voodoo-0.7 vs lib/image_voodoo.rb in image_voodoo-0.8.0

- old
+ new

@@ -61,10 +61,13 @@ target = guard { alpha_impl(rgb) } block_given? ? yield(target) : target end # - # Write current image out as a stream of bytes using provided format. + # Get current image bytes as a String using provided format. Format parameter + # is the informal name of an image type - for instance, + # "bmp" or "jpg". If the backend is AWT the types available are listed in + # javax.imageio.ImageIO.getWriterFormatNames() # def bytes(format) java_bytes = guard { bytes_impl(format) } String.from_java_bytes java_bytes end