@Beta public interface PicturesManager
Modifier and Type | Method and Description |
---|---|
java.lang.String |
savePicture(byte[] content,
PictureType pictureType,
java.lang.String suggestedName,
float widthInches,
float heightInches)
Stores image (probably on disk).
|
java.lang.String savePicture(byte[] content, PictureType pictureType, java.lang.String suggestedName, float widthInches, float heightInches)
PictureType.GIF
,
PictureType.JPEG
, PictureType.PNG
,
PictureType.TIFF
, but rarely PictureType.EMF
or
PictureType.WMF
. FO (Apache FOP) supports at least PNG and SVG
types.content
- picture contentpictureType
- detected picture type (may be PictureType.UNKNOWN
suggestedName
- suggested picture name (based on picture offset in file),
supposed to be uniquewidthInches
- display width in inches (scaled). May be useful for rendering
vector images (such as EMF or WMF)heightInches
- display height in inches (scaled). May be useful for rendering
vector images (such as EMF or WMF)Copyright 2020 The Apache Software Foundation or its licensors, as applicable.