Interface RgbPixmap.RgbPixmapMutator

All Superinterfaces:
Pixmap.PixmapMutator<RgbPixel>
All Known Subinterfaces:
RgbPixmap.RgbPixmapBuilder, RgbPixmap.RgbPixmapProperty
All Known Implementing Classes:
RgbPixmapBuilderImpl
Enclosing interface:
RgbPixmap

public static interface RgbPixmap.RgbPixmapMutator extends Pixmap.PixmapMutator<RgbPixel>
The Interface RgbPixmapMutator.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    setColorAt(Color aPixel, int aPosX, int aPosY)
    Sets an integer value interpreted as pixel in the pixmap.
    default void
    setRgbAt(int aRgbPixel, int aPosX, int aPosY)
    Sets an integer value interpreted as pixel in the pixmap.

    Methods inherited from interface org.refcodes.graphical.Pixmap.PixmapMutator

    setPixelAt, setPixels
  • Method Details

    • setRgbAt

      default void setRgbAt(int aRgbPixel, int aPosX, int aPosY) throws IndexOutOfBoundsException
      Sets an integer value interpreted as pixel in the pixmap.
      Parameters:
      aRgbPixel - The pixel to be placed at the given position.
      aPosX - The x position of the pixel.
      aPosY - The y position of the pixel.
      Throws:
      IndexOutOfBoundsException - in case the index is out of bounds.
    • setColorAt

      default void setColorAt(Color aPixel, int aPosX, int aPosY) throws IndexOutOfBoundsException
      Sets an integer value interpreted as pixel in the pixmap.
      Parameters:
      aPixel - The pixel to be placed at the given position.
      aPosX - The x position of the pixel.
      aPosY - The y position of the pixel.
      Throws:
      IndexOutOfBoundsException - in case the index is out of bounds.