src/main/java/chalmers/pimp/service/RasterDataService.java
private static void writeImageRow(IRasterData rasterData, PixelReader reader, int imageWidth,
      int rowIndex) {
    Objects.requireNonNull(rasterData);
    Objects.requireNonNull(reader);
    for (int col = 0; col < imageWidth; col++) {
      Color fxColor = reader.getColor(col, rowIndex);
      IColor color = ColorConverterService.fxToIColor(fxColor);

      rasterData.setPixel(PixelFactory.createPixel(col, rowIndex, color));
    }
  }
/**
   * Writes a row in the supplied pixel data.
   *
   * @param rasterData the raster data to write to.
   * @param reader     the pixel reader used to obtain ARGB values from the JavaFX image.
   * @param imageWidth the width of the JavaFX image.
   * @param rowIndex   the row index in the JavaFX image.
   * @throws NullPointerException if any arguments are {@code null}.
   */
Writes a row in the supplied pixel data.
@param rasterData the raster data to write to.
@param reader     the pixel reader used to obtain ARGB values from the JavaFX image.
@param imageWidth the width of the JavaFX image.
@param rowIndex   the row index in the JavaFX image.
@throws NullPointerException if any arguments are  null.
Writes a row in the supplied pixel data . @param rasterData the raster data to write to . @param reader the pixel reader used to obtain ARGB values from the JavaFX image . @param imageWidth the width of the JavaFX image . @param rowIndex the row index in the JavaFX image . @throws NullPointerException if any arguments are null .
private static void writeImageRow(IRasterData rasterData, PixelReader reader, int imageWidth,
      int rowIndex) {
    Objects.requireNonNull(rasterData);
    Objects.requireNonNull(reader);
    for (int col = 0; col < imageWidth; col++) {
      Color fxColor = reader.getColor(col, rowIndex);
      IColor color = ColorConverterService.fxToIColor(fxColor);
      rasterData.setPixel(PixelFactory.createPixel(col, rowIndex, color));
    }
  }
private static void writeImageRow ( IRasterData rasterData , PixelReader reader , int imageWidth , int rowIndex ) { Objects . requireNonNull ( rasterData ) ; Objects . requireNonNull ( reader ) ; for ( int col = 0 ; col < imageWidth ; col ++ ) { Color fxColor = reader . getColor ( col , rowIndex ) ; IColor color = ColorConverterService . fxToIColor ( fxColor ) ; rasterData . setPixel ( PixelFactory . createPixel ( col , rowIndex , color ) ) ; } }
Writes a row in the supplied pixel data.
Writes a row in the supplied pixel data .