File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
core/ui/src/main/java/org/phoebus/ui/javafx Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,6 @@ public static BufferedImage bufferFromImage(final Image jfx) {
7171 (int ) jfx .getHeight (),
7272 BufferedImage .TYPE_INT_ARGB );
7373 SwingFXUtils .fromFXImage (jfx , img );
74-
7574 return img ;
7675 }
7776
@@ -153,6 +152,12 @@ public File writeToTempfile(final String file_prefix) throws Exception {
153152 /**
154153 * Puts the {@link Node} as image data onto the clipboard.
155154 *
155+ * <p>
156+ * <b>NOTE:</b> on Windows calling this will throw an {@link java.io.IOException}, but screenshot will still be available on
157+ * the clipboard. <a href='https://stackoverflow.com/questions/59140881/error-copying-an-image-object-to-the-clipboard'>This Stackoverflow post</a>
158+ * suggests the printed stack trace is in fact debug information.
159+ * </p>
160+ *
156161 * @param node Node from which to take a screenshot.
157162 */
158163 public static void copyToClipboard (Node node ) {
You can’t perform that action at this time.
0 commit comments