module ChunkyPNG::RMagick
def import(image)
-
(ChunkyPNG::Canvas)
- The canvas, constructed from the RMagick image.
Parameters:
-
image
(Magick::Image
) -- The image to import
def import(image) pixels = image.export_pixels_to_str(0, 0, image.columns, image.rows, "RGBA") ChunkyPNG::Canvas.from_rgba_stream(image.columns, image.rows, pixels) end