Langsung ke konten utama

Postingan

Unggulan

Pengolahan Citra Sederhana 1

Berikut adalah syntax pengolahan citra gabar Grayscale, Negative, Brightness, dan Contras: import java.awt.*; import java.io.*; import javax.swing.*; import javax.imageio.ImageIO; import java.awt.image.BufferedImage; public class coba extends JFrame{ BufferedImage gbr; int w; int h; public void baca(){     try{     File input = new File("1.jpg");     gbr = ImageIO.read(input);     w = gbr.getWidth();     h = gbr.getHeight();     }     catch(Exception e){     System.out.println("file tidak ada");     } } public void tampil(){     JFrame frame = new JFrame();     ImageIcon image = new ImageIcon("1.jpg");     ImageIcon image2 = new ImageIcon("fotoGray.jpg");     ImageIcon image3 = new ImageIcon("Negative.jpg");     ImageIcon image4 = new ImageIcon("Brightness.jpg");     ImageIcon image5 = new ImageIcon("Contras.jpg");     JLabel imageLabel1= new JLabel(image);     JLabel imageLabel2

Postingan Terbaru

Caesar Cipher