Interface RgbPixmap.RgbPixmapBuilder

All Superinterfaces:
HeightAccessor, Pixmap<RgbPixel>, Pixmap.PixmapBuilder<RgbPixel,RgbPixmap.RgbPixmapBuilder>, Pixmap.PixmapMutator<RgbPixel>, Pixmap.PixmapProperty<RgbPixel>, RgbPixmap, RgbPixmap.RgbPixmapMutator, RgbPixmap.RgbPixmapProperty, WidthAccessor
All Known Implementing Classes:
RgbPixmapBuilderImpl
Enclosing interface:
RgbPixmap

public static interface RgbPixmap.RgbPixmapBuilder extends Pixmap.PixmapBuilder<RgbPixel,RgbPixmap.RgbPixmapBuilder>, RgbPixmap.RgbPixmapProperty
The Interface RgbPixmapBuilder.
  • Method Details

    • withRgbAt

      default RgbPixmap.RgbPixmapBuilder withRgbAt(int aRgbPixel, int aPosX, int aPosY)
      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.
      Returns:
      the RgbPixmapBuilder
      Throws:
      IndexOutOfBoundsException - in case the index is out of bounds.
    • withColorlAt

      default RgbPixmap.RgbPixmapBuilder withColorlAt(Color aPixel, int aPosX, int aPosY)
      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.
      Returns:
      the RgbPixmapBuilder
      Throws:
      IndexOutOfBoundsException - in case the index is out of bounds.