some very simple and rudimentary code for Image Scanning

This commit is contained in:
Paul Schaller 2023-11-14 13:28:44 +01:00
parent 92bbfac256
commit e81e3ea17d

View File

@ -1,5 +1,18 @@
package com.cringe_studios.christmastreescanning; package com.cringe_studios.christmastreescanning;
import java.awt.Point;
import java.awt.image.BufferedImage;
public class ChristmasTreeScanning { public class ChristmasTreeScanning {
Point getBrightestSpot(BufferedImage image) {
int[] imageColors = image.getRGB(0, 0, image.getWidth(), image.getHeight(), null, 0, 0);
for(int i = 0; i < imageColors.length; i++) {
} }
Point brightestSpot = new Point(0, 0);
return brightestSpot;
}
}