Class ImagingParameters<E extends ImagingParameters<E>>
java.lang.Object
org.apache.commons.imaging.ImagingParameters<E>
- Type Parameters:
E- This type
- Direct Known Subclasses:
BmpImagingParameters, IcnsImagingParameters, IcoImagingParameters, PcxImagingParameters, PnmImagingParameters, PsdImagingParameters, RgbeImagingParameters, WbmpImagingParameters, XbmImagingParameters, XmpImagingParameters, XpmImagingParameters
Imaging parameters.
Contains parameters that are common to all formats. Implementations must include the specific parameters for each image format.
- Since:
- 1.0-alpha3
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate BufferedImageFactoryCreatesBufferedImages.private StringAn optional file name, used for the description of input streams where a file name would be hard (or not possible) to be identified.private PixelDensityParameter key.private booleanWhether to throw an exception when any issue occurs during reading or writing a file format. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasThis()Returns this instance typed as the subclass typeE.booleanisStrict()setBufferedImageFactory(BufferedImageFactory bufferedImageFactory) setFileName(String fileName) setPixelDensity(PixelDensity pixelDensity) setStrict(boolean strict)
-
Field Details
-
strict
private boolean strictWhether to throw an exception when any issue occurs during reading or writing a file format. Default isfalse. -
fileName
An optional file name, used for the description of input streams where a file name would be hard (or not possible) to be identified. Default isnull. -
bufferedImageFactory
CreatesBufferedImages. Default isnull. -
pixelDensity
Parameter key. Used in write operations to indicate the desired pixel density (DPI), and/or aspect ratio.
-
-
Constructor Details
-
ImagingParameters
public ImagingParameters()
-
-
Method Details
-
asThis
Returns this instance typed as the subclass typeE.This is the same as the expression:
(B) this
- Returns:
- this instance typed as the subclass type
E.
-
getBufferedImageFactory
-
getFileName
-
getPixelDensity
-
isStrict
public boolean isStrict() -
setBufferedImageFactory
-
setFileName
-
setPixelDensity
-
setStrict
-