Last active
September 19, 2016 18:57
-
-
Save fernandospr/00c3025d2ae576356ee09b58edf7889b to your computer and use it in GitHub Desktop.
Revisions
-
fernandospr revised this gist
Sep 19, 2016 . 1 changed file with 8 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,11 @@ import javax.imageio.ImageIO; import java.awt.Color; import java.awt.image.BufferedImage; import java.io.File; import java.io.IOException; ... public static boolean isFirstPixelWhite(String imageFilename) throws IOException { BufferedImage image = ImageIO.read(new File(imageFilename)); int color = image.getRGB(0, 0); -
fernandospr renamed this gist
Sep 19, 2016 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
fernandospr created this gist
Sep 19, 2016 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,5 @@ public static boolean isFirstPixelWhite(String imageFilename) throws IOException { BufferedImage image = ImageIO.read(new File(imageFilename)); int color = image.getRGB(0, 0); return color == Color.WHITE.getRGB(); }