Uses of Class
javafx.scene.image.Image
Package
Description
Provides the core set of base
classes for the JavaFX Scene Graph API.
Provides the set of classes for canvas, an immediate mode style of rendering API.
Provides the set of classes for attaching graphical filter effects to JavaFX Scene Graph Nodes.
Provides the set of classes for loading and displaying images.
Provides the set of classes for mouse and keyboard input event handling.
Provides classes to support user interface layout.
Provides the set of classes for colors and gradients used to fill shapes and
backgrounds when rendering the scene graph.
Provides the top-level container classes for JavaFX content.
-
Uses of Image in javafx.embed.swing
Modifier and TypeMethodDescriptionstatic BufferedImage
SwingFXUtils.fromFXImage
(Image img, BufferedImage bimg) Snapshots the specified JavaFXImage
object and stores a copy of its pixels into aBufferedImage
object, creating a new object if needed. -
Uses of Image in javafx.scene
Modifier and TypeMethodDescriptionfinal Image
ImageCursor.getImage()
Gets the value of theimage
property.Modifier and TypeMethodDescriptionfinal ReadOnlyObjectProperty<Image>
ImageCursor.imageProperty()
The image to display when the cursor is active.Modifier and TypeMethodDescriptionstatic ImageCursor
ImageCursor.chooseBestCursor
(Image[] images, double hotspotX, double hotspotY) Creates a custom image cursor from one of the specified images.ModifierConstructorDescriptionImageCursor
(Image image) Constructs anImageCursor
from the specified image.ImageCursor
(Image image, double hotspotX, double hotspotY) Constructs anImageCursor
from the specified image and hotspot coordinates. -
Uses of Image in javafx.scene.canvas
Modifier and TypeMethodDescriptionvoid
Draws an image at the given x, y position using the width and height of the given image.void
Draws an image into the given destination rectangle of the canvas.void
GraphicsContext.drawImage
(Image img, double sx, double sy, double sw, double sh, double dx, double dy, double dw, double dh) Draws the specified source rectangle of the given image to the given destination rectangle of the Canvas. -
Uses of Image in javafx.scene.effect
Modifier and TypeMethodDescriptionfinal Image
ImageInput.getSource()
Gets the value of thesource
property.Modifier and TypeMethodDescriptionfinal ObjectProperty<Image>
ImageInput.sourceProperty()
The sourceImage
.Modifier and TypeMethodDescriptionfinal void
Sets the value of thesource
property.ModifierConstructorDescriptionImageInput
(Image source) Creates a new instance of ImageInput with the specified source.ImageInput
(Image source, double x, double y) Creates a new instance of ImageInput with the specified source, x and y. -
Uses of Image in javafx.scene.image
Modifier and TypeClassDescriptionclass
TheWritableImage
class represents a custom graphical image that is constructed from pixels supplied by the application, and possibly fromPixelReader
objects from any number of sources, including images read from a file or URL.Modifier and TypeMethodDescriptionfinal Image
ImageView.getImage()
Gets the value of theimage
property.Modifier and TypeMethodDescriptionfinal ObjectProperty<Image>
ImageView.imageProperty()
TheImage
to be painted by thisImageView
.Modifier and TypeMethodDescriptionfinal void
Sets the value of theimage
property. -
Uses of Image in javafx.scene.input
Modifier and TypeMethodDescriptionDragboard.getDragView()
Gets the image used as a drag view.final Image
Clipboard.getImage()
Gets the Image from the clipboard which had previously been registered.final Image
ClipboardContent.getImage()
Gets the Image from theClipboardContent
which had previously been put.Modifier and TypeMethodDescriptionfinal boolean
Puts an Image into theClipboardContent
.void
Dragboard.setDragView
(Image image) Sets the visual representation of data being transfered in a drag and drop gesture.void
Dragboard.setDragView
(Image image, double offsetX, double offsetY) Sets the visual representation of data being transfered in a drag and drop gesture. -
Uses of Image in javafx.scene.layout
Modifier and TypeMethodDescriptionfinal Image
BackgroundImage.getImage()
The image to be used.final Image
BorderImage.getImage()
The image to be used.ModifierConstructorDescriptionBackgroundImage
(Image image, BackgroundRepeat repeatX, BackgroundRepeat repeatY, BackgroundPosition position, BackgroundSize size) Creates a new BackgroundImage.BorderImage
(Image image, BorderWidths widths, Insets insets, BorderWidths slices, boolean filled, BorderRepeat repeatX, BorderRepeat repeatY) Creates a new BorderImage. -
Uses of Image in javafx.scene.paint
Modifier and TypeMethodDescriptionfinal Image
PhongMaterial.getBumpMap()
Gets the value of thebumpMap
property.final Image
PhongMaterial.getDiffuseMap()
Gets the value of thediffuseMap
property.final Image
ImagePattern.getImage()
Gets the image to be used as a paint.final Image
PhongMaterial.getSelfIlluminationMap()
Gets the value of theselfIlluminationMap
property.final Image
PhongMaterial.getSpecularMap()
Gets the value of thespecularMap
property.Modifier and TypeMethodDescriptionfinal ObjectProperty<Image>
PhongMaterial.bumpMapProperty()
The bump map of thisPhongMaterial
, which is a normal map stored as a RGBImage
.final ObjectProperty<Image>
PhongMaterial.diffuseMapProperty()
The diffuse map of thisPhongMaterial
.final ObjectProperty<Image>
PhongMaterial.selfIlluminationMapProperty()
The self illumination map of thisPhongMaterial
.final ObjectProperty<Image>
PhongMaterial.specularMapProperty()
The specular map of thisPhongMaterial
.Modifier and TypeMethodDescriptionfinal void
PhongMaterial.setBumpMap
(Image value) Sets the value of thebumpMap
property.final void
PhongMaterial.setDiffuseMap
(Image value) Sets the value of thediffuseMap
property.final void
PhongMaterial.setSelfIlluminationMap
(Image value) Sets the value of theselfIlluminationMap
property.final void
PhongMaterial.setSpecularMap
(Image value) Sets the value of thespecularMap
property.ModifierConstructorDescriptionImagePattern
(Image image) Creates a new instance of ImagePattern from the specified image.ImagePattern
(Image image, double x, double y, double width, double height, boolean proportional) Creates a new instance of ImagePattern.PhongMaterial
(Color diffuseColor, Image diffuseMap, Image specularMap, Image bumpMap, Image selfIlluminationMap) Creates a new instance ofPhongMaterial
class using the specified colors and images for itsdiffuseColor
properties. -
Uses of Image in javafx.stage
Modifier and TypeMethodDescriptionfinal ObservableList<Image>
Stage.getIcons()
Gets the icon images to be used in the window decorations and when minimized.