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:
Nobody (None)
Category:
win32-clipboard
State:
Open
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

No Followups Have Been Posted

Attached Files:

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

Changes:

Field Old Value Date By
File Added4913: patch.clipboard.rb2010-04-20 22:27shamisen