Patches: Browse | Submit New | Admin

[#28124] Patch to win32-clipboard to copy bitmap to clipboard

Date:
2010-04-20 22:27
Priority:
3
Submitted By:
Tadashi Kba (shamisen)
Assigned To:
Daniel Berger (djberg96)
Category:
win32-clipboard
State:
Closed
Summary:
Patch to win32-clipboard to copy bitmap to clipboard

Detailed description
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)
       

Add A Comment: Notepad

Please login


Followup

Message
Date: 2014-01-10 17:16
Sender: Daniel Berger

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!
Date: 2014-01-10 15:42
Sender: Daniel Berger

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

Attached Files:

Name Description Download
patch.clipboard.rb patch generated by diff Download

Changes:

Field Old Value Date By
close_date2014-01-10 17:162014-01-10 17:16djberg96
assigned_tonone2014-01-10 17:16djberg96
resolution_idNone2014-01-10 17:16djberg96
status_idOpen2014-01-10 17:16djberg96
File Added4913: patch.clipboard.rb2010-04-20 22:27shamisen