Package javafx.scene.image
Class CanvasPixelWriter
java.lang.Object
javafx.scene.image.AbstractPixelWriter
javafx.scene.image.CanvasPixelWriter
- All Implemented Interfaces:
PixelWriter
- Author:
- Bruno Salmon
-
Constructor Summary
ConstructorDescriptionCanvasPixelWriter
(double width, double height) CanvasPixelWriter
(Canvas canvas) CanvasPixelWriter
(Image image) -
Method Summary
Methods inherited from class javafx.scene.image.AbstractPixelWriter
getPixelFormat, markImageCanvasDirty, setArgb, setArgb, setArgbImpl, setPixels, setPixels, setPixels, setPixels
-
Constructor Details
-
CanvasPixelWriter
-
CanvasPixelWriter
public CanvasPixelWriter(double width, double height) -
CanvasPixelWriter
-
-
Method Details
-
getCanvas
-
setColor
Description copied from interface:PixelWriter
Stores pixel data for aColor
into the specified coordinates of the surface.- Specified by:
setColor
in interfacePixelWriter
- Overrides:
setColor
in classAbstractPixelWriter
- Parameters:
x
- the X coordinate of the pixel color to writey
- the Y coordinate of the pixel color to writec
- the Color to write or null
-