Java Image Gray Scale makeGrayImage(Image in)

Here you can find the source of makeGrayImage(Image in)

Description

make Gray Image

License

Apache License

Declaration

public static Image makeGrayImage(Image in) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.awt.*;

import javax.swing.*;

public class Main {
    public static Image makeGrayImage(Image in) {
        return (GrayFilter.createDisabledImage(in)); // swing 05
        // return(GrayFilter.createGrayImage(in)); // swing 04
    }/*from  ww  w .  ja v a  2s.c o  m*/
}

Related

  1. createGrayedImage(Image i, final boolean b, final int p)
  2. grayScaleImage(Image img, int percent)
  3. isGrayscale(ImageIcon icon)