@Beta public interface PicturesManager
Modifier and Type | Method and Description |
---|---|
String |
savePicture(byte[] content,
PictureType pictureType,
String suggestedName,
float widthInches,
float heightInches)
Stores image (probably on disk).
|
String savePicture(byte[] content, PictureType pictureType, 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. All rights reserved.