java.lang.Object
net.anwiba.commons.image.ImageUtilities
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringconvertToBase64(byte[] bytes, String mimeType) static StringconvertToBase64(BufferedImage image, String imageCodec) static BufferedImagecreate(int width, int height) static BufferedImagestatic BufferedImagecreateCompatibleImage(BufferedImage image, int width, int height) static BufferedImagecreateOpaqueImage(BufferedImage transparentImage) getColors(IndexColorModel colorModel) static BufferedImagegetEmptyImage(Dimension size, ImageCodec imageCodec) static DimensiongetImageSize(byte[] bytes, String name) static IOptional<Rectangle,IOException> getIntersection(Dimension size, int x, int y, int width, int height) static IOptional<Rectangle,IOException> getIntersection(IImageMetadata metadata, int x, int y, int width, int height) static StringgetMimeType(byte[] bytes, String name) static BufferedImagestatic BufferedImagegetTransparentImage(Dimension size) static Number[][]static ImageIcontoImageIcon(Icon icon) static BufferedImagetoOpacity(RenderingHints hints, RenderedImage source, float factor) static BufferedImagetoRGBA(RenderingHints hints, RenderedImage source)
-
Constructor Details
-
ImageUtilities
public ImageUtilities()
-
-
Method Details
-
createCompatibleImage
-
create
-
create
-
getEmptyImage
-
createOpaqueImage
-
getTransparentImage
-
getNonTransparentImage
-
toOpacity
-
toRGBA
-
getMimeType
-
convertToBase64
-
convertToBase64
-
getImageSize
-
toImageIcon
-
getIntersection
public static IOptional<Rectangle,IOException> getIntersection(IImageMetadata metadata, int x, int y, int width, int height) -
getIntersection
public static IOptional<Rectangle,IOException> getIntersection(Dimension size, int x, int y, int width, int height) -
getValues
-
getColors
-