Class ImageDataPixelWriter
java.lang.Object
javafx.scene.image.AbstractPixelWriter
dev.webfx.kit.mapper.peers.javafxgraphics.gwtj2cl.html.ImageDataPixelWriter
- All Implemented Interfaces:
PixelWriter
- Author:
- Bruno Salmon
-
Constructor Summary
ConstructorsConstructorDescriptionImageDataPixelWriter
(elemental2.dom.ImageData imageData) ImageDataPixelWriter
(Image image, elemental2.dom.ImageData imageData) -
Method Summary
Modifier and TypeMethodDescriptionelemental2.dom.ImageData
This method returns thePixelFormat
in which the surface stores its pixels, or a roughly equivalent pixel format from which it can easily convert pixels for purposes of writing them.protected void
setArgb
(int x, int y, int a, int r, int g, int b) void
Stores pixel data for aColor
into the specified coordinates of the surface.protected void
setRgba
(int x, int y, double r, double g, double b, double a) Methods inherited from class javafx.scene.image.AbstractPixelWriter
markImageCanvasDirty, setArgb, setArgbImpl, setPixels, setPixels, setPixels, setPixels
-
Constructor Details
-
ImageDataPixelWriter
public ImageDataPixelWriter(elemental2.dom.ImageData imageData) -
ImageDataPixelWriter
-
-
Method Details
-
getImageData
public elemental2.dom.ImageData getImageData() -
getPixelFormat
Description copied from interface:PixelWriter
This method returns thePixelFormat
in which the surface stores its pixels, or a roughly equivalent pixel format from which it can easily convert pixels for purposes of writing them.- Specified by:
getPixelFormat
in interfacePixelWriter
- Overrides:
getPixelFormat
in classAbstractPixelWriter
- Returns:
- the
PixelFormat
that best describes the underlying pixels
-
setArgb
protected void setArgb(int x, int y, int a, int r, int g, int b) - Overrides:
setArgb
in classAbstractPixelWriter
-
setRgba
protected void setRgba(int x, int y, double r, double g, double b, double a) -
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
-