Class CanvasPixelWriter

java.lang.Object
javafx.scene.image.AbstractPixelWriter
javafx.scene.image.CanvasPixelWriter
All Implemented Interfaces:
PixelWriter

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

    • CanvasPixelWriter

      public CanvasPixelWriter(Image image)
    • CanvasPixelWriter

      public CanvasPixelWriter(double width, double height)
    • CanvasPixelWriter

      public CanvasPixelWriter(Canvas canvas)
  • Method Details

    • getCanvas

      public Canvas getCanvas()
    • 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