sbool clipboardContainsImage() false on exception { Transferable t = rawClipboardContents(); if (t == null) false; // Try image flavor if (t.isDataFlavorSupported(DataFlavor.imageFlavor)) true; // Try image file L l = cast getTransferData(t, DataFlavor.javaFileListFlavor); if (isImageFile(first(l))) true; // Try image as data URL S text = getTextFromClipboard(); ret isImageMimeType(dataURLMimeType(text)); }