Modifier and Type | Class and Description |
---|---|
class |
ImageFormats
Enum of known image formats.
|
Modifier and Type | Method and Description |
---|---|
protected abstract ImageFormat[] |
ImageParser.getAcceptedTypes()
Get an array of ImageFormat objects describing all accepted types
|
ImageFormat |
ImageInfo.getFormat()
Returns the image file format, ie.
|
static ImageFormat |
Imaging.guessFormat(byte[] bytes)
Attempts to determine the image format of a file based on its
"magic numbers," the first bytes of the data.
|
static ImageFormat |
Imaging.guessFormat(ByteSource byteSource)
Attempts to determine the image format of a file based on its
"magic numbers," the first bytes of the data.
|
static ImageFormat |
Imaging.guessFormat(File file)
Attempts to determine the image format of a file based on its
"magic numbers," the first bytes of the data.
|
Modifier and Type | Method and Description |
---|---|
boolean |
ImageParser.canAcceptType(ImageFormat type)
Indicates whether the ImageParser implementation can accept
the specified format
|
static void |
Imaging.writeImage(BufferedImage src,
File file,
ImageFormat format,
Map<String,Object> params)
Writes the content of a BufferedImage to a file using the specified
image format.
|
static void |
Imaging.writeImage(BufferedImage src,
OutputStream os,
ImageFormat format,
Map<String,Object> params)
Writes the content of a BufferedImage to an OutputStream using the specified
image format.
|
static byte[] |
Imaging.writeImageToBytes(BufferedImage src,
ImageFormat format,
Map<String,Object> params)
Writes the content of a BufferedImage to a byte array using the specified
image format.
|
Constructor and Description |
---|
ImageInfo(String formatDetails,
int bitsPerPixel,
List<String> comments,
ImageFormat format,
String formatName,
int height,
String mimeType,
int numberOfImages,
int physicalHeightDpi,
float physicalHeightInch,
int physicalWidthDpi,
float physicalWidthInch,
int width,
boolean progressive,
boolean transparent,
boolean usesPalette,
ImageInfo.ColorType colorType,
ImageInfo.CompressionAlgorithm compressionAlgorithm) |
Modifier and Type | Method and Description |
---|---|
protected ImageFormat[] |
BmpImageParser.getAcceptedTypes() |
Modifier and Type | Method and Description |
---|---|
protected ImageFormat[] |
DcxImageParser.getAcceptedTypes() |
Modifier and Type | Method and Description |
---|---|
protected ImageFormat[] |
GifImageParser.getAcceptedTypes() |
Modifier and Type | Method and Description |
---|---|
protected ImageFormat[] |
IcnsImageParser.getAcceptedTypes() |
Modifier and Type | Method and Description |
---|---|
protected ImageFormat[] |
IcoImageParser.getAcceptedTypes() |
Modifier and Type | Method and Description |
---|---|
protected ImageFormat[] |
JpegImageParser.getAcceptedTypes() |
Modifier and Type | Method and Description |
---|---|
protected ImageFormat[] |
PcxImageParser.getAcceptedTypes() |
Modifier and Type | Method and Description |
---|---|
protected ImageFormat[] |
PngImageParser.getAcceptedTypes() |
Modifier and Type | Method and Description |
---|---|
protected ImageFormat[] |
PnmImageParser.getAcceptedTypes() |
Modifier and Type | Method and Description |
---|---|
protected ImageFormat[] |
PsdImageParser.getAcceptedTypes() |
Modifier and Type | Method and Description |
---|---|
protected ImageFormat[] |
RgbeImageParser.getAcceptedTypes() |
Modifier and Type | Method and Description |
---|---|
protected ImageFormat[] |
TiffImageParser.getAcceptedTypes() |
Modifier and Type | Method and Description |
---|---|
protected ImageFormat[] |
WbmpImageParser.getAcceptedTypes() |
Modifier and Type | Method and Description |
---|---|
protected ImageFormat[] |
XbmImageParser.getAcceptedTypes() |
Modifier and Type | Method and Description |
---|---|
protected ImageFormat[] |
XpmImageParser.getAcceptedTypes() |
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.