wood burning stoves 2.0*
The moose likes Java in General and the fly likes Is there any way of getting an image from the system clipboard? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Is there any way of getting an image from the system clipboard?" Watch "Is there any way of getting an image from the system clipboard?" New topic
Author

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

Anil Vupputuri
Ranch Hand

Joined: Oct 31, 2000
Posts: 527
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.

SCJP 1.5, SCEA, ICED (287,484,486)
Carl Trusiak
Sheriff

Joined: Jun 13, 2000
Posts: 3340
I've done no testing of this but, Have you tryed


[This message has been edited by Carl Trusiak (edited December 07, 2000).]


I Hope This Helps
Carl Trusiak, SCJP2, SCWCD
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is there any way of getting an image from the system clipboard?