Advertisement
Guest User

Untitled

a guest
Dec 20th, 2014
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.12 KB | None | 0 0
  1. # arr is ByteArray. 'image' is still in memory
  2. image = Magick::Image.constitute(width, height, "RGB", arr.flatten)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement