From: git Date: Fri, 23 Jun 2017 16:55:09 +0000 (+0200) Subject: My progress for conversion by ChingYi X-Git-Url: http://git.risc.jku.at/gitweb/?a=commitdiff_plain;h=bf5cd25e27556545a48b4448f4fe1e3503498201;p=ipau%2FColorBlackWhiteConversion.git My progress for conversion by ChingYi --- diff --git a/Conversion_CYC/BlackandWhite.java b/Conversion_CYC/BlackandWhite.java new file mode 100644 index 0000000..6e7ae12 --- /dev/null +++ b/Conversion_CYC/BlackandWhite.java @@ -0,0 +1,57 @@ +import java.awt.*; +import java.awt.image.BufferedImage; + +import java.io.*; + +import javax.imageio.ImageIO; +import javax.swing.JFrame; + +public class BlackandWhite { + + BufferedImage image; + int width; + int height; + + public BlackandWhite() { + + try { + File input = new File("test.jpg"); + image = ImageIO.read(input); + width = image.getWidth(); + height = image.getHeight(); + + for(int i=0; i