Package snap.gfx
Class ImageUtils
java.lang.Object
snap.gfx.ImageUtils
Some Image utility methods.
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Image
Returns an image place holder for missing images.static Image
getImageForStringAndFont
(String aStr, Font aFont) Returns an image for string and font.static String
getImageType
(byte[] bytes) Returns the type of the image bytes provided.static ImageUtils.ImageInfo
getInfoJPG
(byte[] theBytes) Reads basic image info specifically optimized for JPEG images (without having to create Java RenderedImage).static void
setEmptyImageURL
(WebURL aURL) Returns an image place holder for missing images.
-
Constructor Details
-
ImageUtils
public ImageUtils()
-
-
Method Details
-
getImageType
Returns the type of the image bytes provided. -
getImageForStringAndFont
Returns an image for string and font. -
getInfoJPG
Reads basic image info specifically optimized for JPEG images (without having to create Java RenderedImage). -
getEmptyImage
Returns an image place holder for missing images. -
setEmptyImageURL
Returns an image place holder for missing images.
-