Class ImageUtils
java.lang.Object
org.bidib.wizard.migration.progress.ImageUtils
This ImageUtils class contains parts from:
invalid reference
://flyingdogz.wordpress.com/2008/02/11/image-rotate-in-java-2-easier-to-use/
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ImageIconcreateImageIcon(Class<?> clazz, String path) Returns an ImageIcon, or null if the path was invalid.static GraphicsConfigurationstatic booleanstatic ImageIconloadImageIcon(Class<?> clazz, String path, int width, int height) static ImagerotateImage(Image img, double degree) static BufferedImagetilt(BufferedImage image, double angle) static BufferedImagetoBufferedImage(Image image)
-
Constructor Details
-
ImageUtils
public ImageUtils()
-
-
Method Details
-
createImageIcon
Returns an ImageIcon, or null if the path was invalid.- Parameters:
clazz- the classpath- the path- Returns:
- the image or null if path was invalid
-
loadImageIcon
-
rotateImage
-
tilt
-
getDefaultConfiguration
-
toBufferedImage
-
hasAlpha
-