Class ImageDataPixelWriter

java.lang.Object
javafx.scene.image.AbstractPixelWriter
dev.webfx.kit.mapper.peers.javafxgraphics.gwtj2cl.html.ImageDataPixelWriter
All Implemented Interfaces:
PixelWriter

public class ImageDataPixelWriter extends AbstractPixelWriter
Author:
Bruno Salmon
  • Constructor Details

    • ImageDataPixelWriter

      public ImageDataPixelWriter(elemental2.dom.ImageData imageData)
    • ImageDataPixelWriter

      public ImageDataPixelWriter(Image image, elemental2.dom.ImageData imageData)
  • Method Details

    • getImageData

      public elemental2.dom.ImageData getImageData()
    • getPixelFormat

      public PixelFormat getPixelFormat()
      Description copied from interface: PixelWriter
      This method returns the PixelFormat 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 interface PixelWriter
      Overrides:
      getPixelFormat in class AbstractPixelWriter
      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 class AbstractPixelWriter
    • setRgba

      protected void setRgba(int x, int y, double r, double g, double b, double a)
    • setColor

      public void setColor(int x, int y, Color c)
      Description copied from interface: PixelWriter
      Stores pixel data for a Color into the specified coordinates of the surface.
      Specified by:
      setColor in interface PixelWriter
      Overrides:
      setColor in class AbstractPixelWriter
      Parameters:
      x - the X coordinate of the pixel color to write
      y - the Y coordinate of the pixel color to write
      c - the Color to write or null