Package be.quodlibet.boxable.utils
Class ImageUtils
java.lang.Object
be.quodlibet.boxable.utils.ImageUtils
Utility methods for images
- Author:
- mkuehne, hstimac
-
Method Summary
-
Method Details
-
readImage
Simple reading image from file
- Parameters:
imageFile-Filefrom which image will be loaded- Returns:
Image- Throws:
IOException- if loading image fails
-
getScaledDimension
public static float[] getScaledDimension(float imageWidth, float imageHeight, float boundWidth, float boundHeight) - Parameters:
imageWidth- Original image widthimageHeight- Original image heightboundWidth- Desired image widthboundHeight- Desired image height- Returns:
Arraywith image dimension. First value is width and second is height.
-