This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is there any way of getting an image from the system clipboard?

 
Anil Vupputuri
Ranch Hand
Posts: 527
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I managed to create my own clipboard, copy anything I like onto it, and paste it from there.
But...let's say I pressed PrintScreen, the resultant image is captured on the System Clipboard. I create my own clipboard and try to set it contents equal to that of the System Clipboard and it results in a NullPointerException. The previous problem with UnSupportedDataFlavor Exceptions has been cleared. But I still can't get anything other than strings and plain text from the System Clipboard.
Anyone have any ideas?]
Anil.
 
Carl Trusiak
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've done no testing of this but, Have you tryed


[This message has been edited by Carl Trusiak (edited December 07, 2000).]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic