Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Capture Images from memory with Clipboard Function

Status
Not open for further replies.

SalehKiswani

IS-IT--Management
Jul 16, 2011
60
Hi,
I am creating an application which depends on the contents of clipboard. Text is captured OK but images (such as Print Screen)doesnt.

Any suggestions will highly appreciated

Iam using Clarion 6.3
 
Hi!

Check out - it's a class to use the FreeImage library. It has a clipboard class and an example of it's usage to copy the Image in the Clipboard to a BLOB is shown below ::

Code:
cb  SaClipboardClass

  code
 
  if cb.OpenClipboard(myWindow)
     if cb.GetClipboard(myfile.myblob, SA_CF_DIB)
        !the DIB on the clipboard is now in the BLOB
        !add the record.
     end
     cb.CloseClipboard()
  end

Regards
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top