noreply at rubyforge.org
2010-Apr-20 22:27 UTC
[Win32utils-devel] [ win32utils-Patches-28124 ] Patch to win32-clipboard to copy bitmap to clipboard
Patches item #28124, was opened at 2010-04-20 22:27 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=413&aid=28124&group_id=85 Category: win32-clipboard Group: New Feature Status: Open Resolution: None Priority: 3 Submitted By: Tadashi Kba (shamisen) Assigned to: Nobody (None) Summary: Patch to win32-clipboard to copy bitmap to clipboard Initial Comment: Patch to clipboard.rb to copy bitmap to clipboard using the function Win32::Clipboard.set_data(f, Win32::Clipboard::DIB) or Win32::Clipboard.set_data(f, Win32::Clipboard::BITMAP), where f is the file readed to a string. Example: # Put the image test.bmp on the clipboard # f = File.open("test.bmp", "rb") # str = f.read # Clipboard.set_data(str, Win32::Clipboard::DIB) ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=413&aid=28124&group_id=85