Gosu.clipboard returns the copied text or filename, or nil if the user hasn't copied anything useful. Games can just listen for ctrl+V/cmd+V and implement pasting of image files using the filenames. (Gosu::TextInput should have built-in copy & paste, though.) Writing to Gosu.clipboard= would allow for copying of arbitrary text.Gosu.clipboard should be able to read/write Gosu::Image instances as well. Or maybe you could call it like this, image = Gosu.clipboard { |imgdata| Image.new(imgdata, tileable: true) } if you are interested in image data, and without a block if you are interested in text.Image.from_blob: You can pass an RMagick image instead of a filename to all Window constructors (also load_tiles etc.)columns (width), rows (height) and to_blob (return RGBA data as a String). The problem is that you would still need to extract the width and height from the binary DIB image, and convert the RGB DIB data to RGBA.Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill