public static Image getClipboardImage ( ) { Clipboard clipboard = Toolkit . getDefaultToolkit ( ) . getSystemClipboard ( ) ; try { return ( Image ) clipboard . getData ( DataFlavor . imageFlavor ) ; } catch ( Exception e ) { return null ; } }
Gets an image from Clipboard .