< prev index next >
modules/web/src/main/java/com/sun/javafx/webkit/PasteboardImpl.java
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
@@ -23,10 +23,11 @@
* questions.
*/
package com.sun.javafx.webkit;
+import com.sun.javafx.tk.Toolkit;
import com.sun.webkit.Pasteboard;
import com.sun.webkit.graphics.WCGraphicsManager;
import com.sun.webkit.graphics.WCImageFrame;
import javafx.scene.image.Image;
import javafx.scene.input.Clipboard;
@@ -62,11 +63,11 @@
}
@Override public void writeImage(WCImageFrame wcImage) {
Object platformImage = WCGraphicsManager.getGraphicsManager().
toPlatformImage(wcImage.getFrame());
- Image fxImage = Image.impl_fromPlatformImage(platformImage);
+ Image fxImage = Toolkit.getImageAccessor().fromPlatformImage(platformImage);
ClipboardContent content = new ClipboardContent();
content.putImage(fxImage);
clipboard.setContent(content);
}
< prev index next >