Class ImageUtils
java.lang.Object
de.pianoman911.mapengine.api.util.ImageUtils
Utilities for working with
BufferedImage's.-
Method Summary
Modifier and TypeMethodDescriptionstatic BufferedImagecutImage(BufferedImage image) static BufferedImageresize(BufferedImage image, int width, int height) Creates a new image with the given width and height using the content of the given image.static int[]rgb(BufferedImage image) A helper method to get the rgb array from a buffered image.
-
Method Details
-
resize
Creates a new image with the given width and height using the content of the given image.- Parameters:
image- the image to resizewidth- the new widthheight- the new height- Returns:
- the resized image
-
rgb
A helper method to get the rgb array from a buffered image.- Parameters:
image- the image to get the rgb array from- Returns:
- the rgb array of the image
-
cutImage
-