Java Utililty Methods Image Filter

List of utility methods to do Image Filter

Description

The list of methods to do Image Filter are organized into topic(s).

Method

ImageIconcreateIcon(ImageIcon icon, ImageFilter filter)
Create a new icon which is filtered by some ImageFilter
ImageProducer ip;
Image image;
MediaTracker tracker;
if (icon == null) {
    return null;
ip = new FilteredImageSource(icon.getImage().getSource(), filter);
image = Toolkit.getDefaultToolkit().createImage(ip);
...
ImageIconcreateIcon(ImageIcon icon, ImageFilter filter)
Create a new icon which is filtered by some ImageFilter
ImageProducer ip;
Image image;
MediaTracker tracker;
ip = new FilteredImageSource(icon.getImage().getSource(), filter);
image = Toolkit.getDefaultToolkit().createImage(ip);
tracker = new MediaTracker(new JPanel());
tracker.addImage(image, 1);
try {
...
FileNameExtensionFiltercreateKC854HiresImageFileFilter()
create KC Hires Image File Filter
return new FileNameExtensionFilter("KC85/4,5-HIRES-Bilddateien", "hip");
BufferedImagecreateQualityResizedImage(Image orginalImage, int width, int height, boolean applySoftFilter, boolean keepRatio, Color bgColor, boolean fast)
Create a resized Image with high quality rendering
if (orginalImage == null) {
    throw new IllegalArgumentException("null argument");
final BufferedImage bufferedImage = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);
Graphics2D g2 = bufferedImage.createGraphics();
g2.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY);
g2.setRenderingHint(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BILINEAR);
g2.setRenderingHint(RenderingHints.KEY_ALPHA_INTERPOLATION,
...
ImageIconfilter(ImageIcon image, RGBImageFilter filter)
Utility method that filters the image.
ImageProducer prod = new FilteredImageSource(image.getImage().getSource(), filter);
ImageIcon filteredImage = new ImageIcon(Toolkit.getDefaultToolkit().createImage(prod));
return filteredImage;
RGBImageFiltergetImageIconFilter()
get Image Icon Filter
if (null == imageIconFilter) {
    Object obj = UIManager.get("nb.imageicon.filter"); 
    if (obj instanceof RGBImageFilter) {
        imageIconFilter = (RGBImageFilter) obj;
return imageIconFilter;