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.ImageDataThis method returns thePixelFormatin 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 voidsetArgb(int x, int y, int a, int r, int g, int b) voidStores pixel data for aColorinto the specified coordinates of the surface.protected voidsetRgba(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:PixelWriterThis method returns thePixelFormatin 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:
getPixelFormatin interfacePixelWriter- Overrides:
getPixelFormatin classAbstractPixelWriter- Returns:
- the
PixelFormatthat best describes the underlying pixels
-
setArgb
protected void setArgb(int x, int y, int a, int r, int g, int b) - Overrides:
setArgbin classAbstractPixelWriter
-
setRgba
protected void setRgba(int x, int y, double r, double g, double b, double a) -
setColor
Description copied from interface:PixelWriterStores pixel data for aColorinto the specified coordinates of the surface.- Specified by:
setColorin interfacePixelWriter- Overrides:
setColorin 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
-