Class TintFilter

All Implemented Interfaces:
ImageConsumer, Cloneable

public class TintFilter extends RGBImageFilter
An image filter that tints the image with a color.
  • Constructor Details

    • TintFilter

      public TintFilter(Color color, int width, int height, Insets insets)
  • Method Details

    • filterRGB

      public int filterRGB(int x, int y, int rgb)
      Specified by:
      filterRGB in class RGBImageFilter
    • createTintedImage

      public static Image createTintedImage(Image i, Color color, Insets insets)
      Creates a tinted image
      Parameters:
      i - the original image
      color - the color to be tinted
      insets - the insets. The border area with the insets will not be tinted.
      Returns:
      a tinted image