@Deprecated public class ImageUtils extends Object
| Constructor and Description |
|---|
ImageUtils()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
convertToPng(File srcFile,
File dstFile)
Deprecated.
Convert image to png
|
BufferedImage |
cropImage(BufferedImage originalImage,
int width,
int height)
Deprecated.
Crop image to desired size
|
String |
normalizeImageName(String value)
Deprecated.
Normalize image name replacing non-alphanumeric characters by "_"
|
BufferedImage |
resizeImage(BufferedImage originalImage,
int maxWidth,
int maxHeight)
Deprecated.
Resize image to desired size
|
BufferedImage |
resizeImage(File originalImageFile,
int maxWidth,
int maxHeight)
Deprecated.
Resize image to desired size
|
void |
resizeImageForAllAndroidDensities(String imageName,
File imageFile,
File tmpDirectory)
Deprecated.
Resize image for all densities (ldpi/mdpi/hdpi/xhdpi/xxdpi)
|
void |
resizeImageForAllAndroidDensities(String imageName,
File imageFile,
File tmpDirectory,
boolean force)
Deprecated.
Resize image for all densities (ldpi/mdpi/hdpi/xhdpi/xxdpi)
|
BufferedImage |
resizeImageSquare(BufferedImage originalImage,
int size)
Deprecated.
Resize image to desired size
|
BufferedImage |
resizeImageSquare(File originalImageFile,
int size)
Deprecated.
Resize image to desired size
|
void |
resizeImageToIcon(InputStream stream,
File destFile)
Deprecated.
Resize image to fit icon specs
|
void |
saveAndroidIcons(File icon,
File directory,
String iconName)
Deprecated.
Export to android icons (ldpi/mdpi/hdpi/xhdpi/xxhdpi/xxxhdpi)
|
void |
saveIosIcons(File icon,
File directory,
String iconName)
Deprecated.
Export to ios icons (icon,icon@2x,40,40@2x,50,50@2x,60,60@2x,72,72@2x,76,76@2x,small,small@2x)
|
void |
saveIosSplashScreens(File ss,
File directory)
Deprecated.
Export to ios splashscreens
|
void |
writeBufferedImageToFile(BufferedImage image,
File file)
Deprecated.
Write buffered image to file
|
public void resizeImageToIcon(InputStream stream, File destFile)
stream - the input stream of the imagedestFile - the destination filepublic void saveAndroidIcons(File icon, File directory, String iconName)
icon - the icon filedirectory - the destination directorypublic void saveIosIcons(File icon, File directory, String iconName)
icon - the icon filedirectory - the destination directorypublic void saveIosSplashScreens(File ss, File directory)
ss - the splashscreen image filedirectory - the destination directorypublic String normalizeImageName(String value)
public void resizeImageForAllAndroidDensities(String imageName, File imageFile, File tmpDirectory, boolean force)
imageName - imageFile - tmpDirectory - force - public void resizeImageForAllAndroidDensities(String imageName, File imageFile, File tmpDirectory)
imageName - imageFile - tmpDirectory - public BufferedImage resizeImage(BufferedImage originalImage, int maxWidth, int maxHeight)
originalImage - the BufferedImagemaxWidth - the maximum width in pxmaxHeight - the maximum height in pxpublic BufferedImage cropImage(BufferedImage originalImage, int width, int height)
originalImage - the BufferedImagewidth - the width in pxheight - the height in pxpublic BufferedImage resizeImageSquare(BufferedImage originalImage, int size)
originalImage - the BufferedImagesize - the target size in pxpublic BufferedImage resizeImageSquare(File originalImageFile, int size)
originalImageFile - the Filesize - the target size in pxpublic BufferedImage resizeImage(File originalImageFile, int maxWidth, int maxHeight)
originalImageFile - the FilemaxWidth - the maximum width in pxmaxHeight - the maximum height in pxpublic void convertToPng(File srcFile, File dstFile)
srcFile - the source filedstFile - the destination png filepublic void writeBufferedImageToFile(BufferedImage image, File file)
image - the imagefile - the fileCopyright © 2015. All rights reserved.