Example usage for java.awt.image RGBImageFilter subclass-usage

List of usage examples for java.awt.image RGBImageFilter subclass-usage

Introduction

In this page you can find the example usage for java.awt.image RGBImageFilter subclass-usage.

Usage

From source file AlphaFilter.java

class AlphaFilter extends RGBImageFilter {
    int alphaLevel;

    public AlphaFilter(int alpha) {
        alphaLevel = alpha;
        canFilterIndexColorModel = true;

From source file ColorFilter.java

class ColorFilter extends RGBImageFilter {
    boolean red, green, blue;

    public ColorFilter(boolean r, boolean g, boolean b) {
        red = r;
        green = g;

From source file GetRedFilter.java

class GetRedFilter extends RGBImageFilter {
    public GetRedFilter() {
        canFilterIndexColorModel = true;
    }

    public int filterRGB(int x, int y, int rgb) {

From source file ColorComponentScaler.java

/**
 * ColorComponentScaler -- filters an image by multiplier its red, green and
 * blue color components by their given scale factors
 */
public class ColorComponentScaler extends RGBImageFilter {
    private double redMultiplier, greenMultiplier, blueMultiplier;

From source file Main.java

class XorFilter extends RGBImageFilter {
    public int filterRGB(int x, int y, int argb) {
        return ((argb & 0xff000000) | (argb ^ 0x00ffffff));
    }
}

From source file MainClass.java

class NegativeFilter extends RGBImageFilter {
    public NegativeFilter() {
        canFilterIndexColorModel = true;
    }

    public int filterRGB(int x, int y, int rgb) {

From source file Main.java

class RedBlueSwapFilter extends RGBImageFilter {
    public int filterRGB(int x, int y, int rgb) {
        return ((rgb & 0xff00ff00) | ((rgb & 0xff0000) >> 16) | ((rgb & 0xff) << 16));
    }
}

From source file Main.java

class GrayFilter extends RGBImageFilter {
    public int filterRGB(int x, int y, int argb) {
        int r = (argb & 0x00ff0000) >> 0x02;
        int g = (argb & 0x0000ff00) >> 0x08;
        int b = (argb & 0x000000ff);
        int ave = (r + g + b) / 3;

From source file Main.java

class GrayToColorFilter extends RGBImageFilter {
    private Color c;

    public GrayToColorFilter(Color c) {
        this.c = c;
    }

From source file com.jcraft.weirdx.TransparentFilter.java

final class TransparentFilter extends RGBImageFilter {
    private static Log LOG = LogFactory.getLog(TransparentFilter.class);

    int width;
    int height;
    byte[] pixels;