[Win32utils-devel] [ win32utils-Patches-28124 ] Patch to win32-clipboard to copy bitmap to clipboard

noreply at rubyforge.org noreply at rubyforge.org
Fri Jan 10 17:16:22 UTC 2014


Patches item #28124, was opened at 2010-04-20 15: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: Closed
>Resolution: Accepted
Priority: 3
Submitted By: Tadashi Kba (shamisen)
>Assigned to: Daniel Berger (djberg96)
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)
       

----------------------------------------------------------------------

>Comment By: Daniel Berger (djberg96)
Date: 2014-01-10 10:16

Message:
Nevermind, got it. I've applied it to the git repo on the ffi branch, and it will be part of the 0.6.0 release.

Thanks!

----------------------------------------------------------------------

Comment By: Daniel Berger (djberg96)
Date: 2014-01-10 08:42

Message:
Somehow I missed this. Any chance of a git pull request?

----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=413&aid=28124&group_id=85


More information about the win32utils-devel mailing list