FileDocCategorySizeDatePackage
TransparentImageFilter.javaAPI DocExample928Mon Mar 24 02:00:02 GMT 1997None

TransparentImageFilter

public class TransparentImageFilter extends RGBImageFilter

Fields Summary
float
alphaPercent
Constructors Summary
public TransparentImageFilter()

        this (0.75f);
    
public TransparentImageFilter(float aPercent)

        if ((aPercent < 0.0) || (aPercent > 1.0))
            throw new IllegalArgumentException();
        alphaPercent = aPercent;
        canFilterIndexColorModel = true;
    
Methods Summary
public intfilterRGB(int x, int y, int rgb)

        int a = (rgb >> 24) & 0xff;
        a *= alphaPercent;
        return ((rgb & 0x00ffffff) | (a << 24));