Example usage for Java org.apache.commons.imaging Imaging fields, constructors, methods, implement or subclass
The text is from its open source code.
String | dumpImageFile(final byte bytes[]) Write the ImageInfo and format-specific information for the image content of the specified byte array to a string. |
String | dumpImageFile(final File file) Write the ImageInfo and format-specific information for the image content of the specified file to a string. |
String | dumpImageFile(final ByteSource byteSource) |
List | getAllBufferedImages(final byte bytes[]) Gets all images specified by the byte array (some formats may include multiple images within a single data source). |
List | getAllBufferedImages(final File file) Gets all images specified by the file (some formats may include multiple images within a single data source). |
List | getAllBufferedImages(final ByteSource byteSource) |
BufferedImage | getBufferedImage(final InputStream is) Reads the first image from an InputStream. |
BufferedImage | getBufferedImage(final byte bytes[]) Reads the first image from a byte array. |
BufferedImage | getBufferedImage(final File file) Reads the first image from a file. |
BufferedImage | getBufferedImage(final InputStream is, final Map Reads the first image from an InputStream using data-processing options specified through a parameters map. |
BufferedImage | getBufferedImage(final byte bytes[], final Map Reads the first image from a byte array using data-processing options specified through a parameters map. |
BufferedImage | getBufferedImage(final File file, final Map Reads the first image from a file using data-processing options specified through a parameters map. |
BufferedImage | getBufferedImage(final ByteSource byteSource, Map |
FormatCompliance | getFormatCompliance(final byte bytes[]) Attempts to determine the image format of the specified data and evaluates its format compliance. |
FormatCompliance | getFormatCompliance(final File file) Attempts to determine the image format of the specified data and evaluates its format compliance. |
FormatCompliance | getFormatCompliance(final ByteSource byteSource) |
ICC_Profile | getICCProfile(final byte bytes[]) Extracts an ICC Profile (if present) from JPEG, PNG, PSD (Photoshop) and TIFF images. |
ICC_Profile | getICCProfile(final File file) Extracts an ICC Profile (if present) from JPEG, PNG, PSD (Photoshop) and TIFF images. |
byte[] | getICCProfileBytes(final byte bytes[]) Extracts the raw bytes of an ICC Profile (if present) from JPEG, PNG, PSD (Photoshop) and TIFF images. |
byte[] | getICCProfileBytes(final File file) Extracts the raw bytes of an ICC Profile (if present) from JPEG, PNG, PSD (Photoshop) and TIFF images. |
ImageInfo | getImageInfo(final String filename, final byte bytes[]) Parses the "image info" of an image. |
ImageInfo | getImageInfo(final InputStream is, final String filename) Parses the "image info" of an image. |
ImageInfo | getImageInfo(final byte bytes[], final Map Parses the "image info" of an image. |
ImageInfo | getImageInfo(final File file, final Map Parses the "image info" of an image file. |
ImageInfo | getImageInfo(final ByteSource byteSource, final Map |
ImageInfo | getImageInfo(final byte bytes[]) Parses the "image info" of an image. |
ImageInfo | getImageInfo(final File file) Parses the "image info" of an image file. |
Dimension | getImageSize(final byte bytes[]) Determines the width and height of an image. |
Dimension | getImageSize(final File file) Determines the width and height of an image file. |
Dimension | getImageSize(final InputStream is, final String filename) Determines the width and height of an image. |
Dimension | getImageSize(final byte bytes[], final Map Determines the width and height of an image. |
Dimension | getImageSize(final File file, final Map Determines the width and height of an image file. |
Dimension | getImageSize(final ByteSource byteSource, final Map |
IImageMetadata | getMetadata(final byte bytes[]) Parses the metadata of an image. |
IImageMetadata | getMetadata(final File file) Parses the metadata of an image file. |
IImageMetadata | getMetadata(final byte bytes[], final Map Parses the metadata of an image. |
IImageMetadata | getMetadata(final InputStream is, final String filename) Parses the metadata of an image file. |
IImageMetadata | getMetadata(final File file, final Map Parses the metadata of an image file. |
IImageMetadata | getMetadata(final ByteSource byteSource, final Map |
ImageFormat | guessFormat(final byte bytes[]) Attempts to determine the image format of a file based on its "magic numbers," the first bytes of the data. |
ImageFormat | guessFormat(final File file) Attempts to determine the image format of a file based on its "magic numbers," the first bytes of the data. |
ImageFormat | guessFormat(final ByteSource byteSource) Attempts to determine the image format of a file based on its "magic numbers," the first bytes of the data. |
boolean | hasImageFileExtension(final File file) Attempts to determine if a file contains an image recorded in a supported graphics format based on its file-name extension (for example ".jpg", ".gif", ".png", etc.). |
boolean | hasImageFileExtension(String filename) Attempts to determine if a file contains an image recorded in a supported graphics format based on its file-name extension (for example ".jpg", ".gif", ".png", etc.). |
void | writeImage(final BufferedImage src, final File file, final ImageFormat format, final Map Writes the content of a BufferedImage to a file using the specified image format. |
void | writeImage(final BufferedImage src, final OutputStream os, final ImageFormat format, Map Writes the content of a BufferedImage to an OutputStream using the specified image format. |
byte[] | writeImageToBytes(final BufferedImage src, final ImageFormat format, final Map Writes the content of a BufferedImage to a byte array using the specified image format. |