Package org.eclnt.util.valuemgmt
Class ImageShrinker
java.lang.Object
org.eclnt.util.valuemgmt.ImageShrinker
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancheckIfShrinkingIsSupported(String extension) static voidstatic byte[]shrinkImage(byte[] bytes, int width, int height, float quality, String format) static byte[]shrinkImage(byte[] bytes, int width, int height, String format) static byte[]sizeImage(byte[] bytes, int width, int height, float quality, String format, boolean keepRatio, boolean onlyShrkinking)
-
Constructor Details
-
ImageShrinker
public ImageShrinker()
-
-
Method Details
-
checkIfShrinkingIsSupported
-
shrinkImage
public static byte[] shrinkImage(byte[] bytes, int width, int height, String format) throws ImageShrinker.ImageShrinkerException -
shrinkImage
public static byte[] shrinkImage(byte[] bytes, int width, int height, float quality, String format) throws ImageShrinker.ImageShrinkerException -
sizeImage
public static byte[] sizeImage(byte[] bytes, int width, int height, float quality, String format, boolean keepRatio, boolean onlyShrkinking) throws ImageShrinker.ImageShrinkerException -
main
-