Package snap.gfx

Class ImageUtils

java.lang.Object
snap.gfx.ImageUtils

public class ImageUtils extends Object
Some Image utility methods.
  • Constructor Details

    • ImageUtils

      public ImageUtils()
  • Method Details

    • getImageType

      public static String getImageType(byte[] bytes)
      Returns the type of the image bytes provided.
    • getImageForStringAndFont

      public static Image getImageForStringAndFont(String aStr, Font aFont)
      Returns an image for string and font.
    • getInfoJPG

      public static ImageUtils.ImageInfo getInfoJPG(byte[] theBytes)
      Reads basic image info specifically optimized for JPEG images (without having to create Java RenderedImage).
    • getEmptyImage

      public static Image getEmptyImage()
      Returns an image place holder for missing images.
    • setEmptyImageURL

      public static void setEmptyImageURL(WebURL aURL)
      Returns an image place holder for missing images.