Quaqua 8.0 2011-10-02

ch.randelshofer.quaqua.util
Class Images

java.lang.Object
  extended by ch.randelshofer.quaqua.util.Images

public class Images
extends java.lang.Object

Image processing methods.

Version:
$Id: Images.java 423 2011-08-05 09:24:10Z wrandelshofer $
Author:
Werner Randelshofer, Karl von Randow

Nested Class Summary
static class Images.GraphiteFilter
          The graphite filter converts Mac OS X artwork from "Blue Appearance" to "Graphite Appearance" by desaturing the colors.
 
Method Summary
static java.awt.Image createImage(java.lang.Class baseClass, java.lang.String location)
           
static java.awt.Image createImage(java.net.URL resource)
           
static boolean hasAlpha(java.awt.Image image)
          This method returns true if the specified image has transparent pixels Code taken from the Java Developers Almanac 1.4 http://javaalmanac.com/egs/java.awt.image/HasAlpha.html
static java.awt.image.BufferedImage[] split(java.awt.Image image, int count, boolean isHorizontal)
          Splits an image into count subimages.
static java.awt.image.BufferedImage toBufferedImage(java.awt.Image image)
           
static java.awt.image.BufferedImage toBufferedImage(java.awt.image.RenderedImage rImg)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createImage

public static java.awt.Image createImage(java.lang.Class baseClass,
                                         java.lang.String location)

createImage

public static java.awt.Image createImage(java.net.URL resource)

toBufferedImage

public static java.awt.image.BufferedImage toBufferedImage(java.awt.image.RenderedImage rImg)

toBufferedImage

public static java.awt.image.BufferedImage toBufferedImage(java.awt.Image image)

hasAlpha

public static boolean hasAlpha(java.awt.Image image)
This method returns true if the specified image has transparent pixels Code taken from the Java Developers Almanac 1.4 http://javaalmanac.com/egs/java.awt.image/HasAlpha.html


split

public static java.awt.image.BufferedImage[] split(java.awt.Image image,
                                                   int count,
                                                   boolean isHorizontal)
Splits an image into count subimages.


Copyright 2003-2007 (c) Werner Randelshofer.
All rights reserved.