Class ImageInfo
- java.lang.Object
-
- org.nuxeo.ecm.platform.picture.api.ImageInfo
-
- All Implemented Interfaces:
Serializable
public class ImageInfo extends Object implements Serializable
Wrapper class for the information returned by the Identify ImageMagick command.- Author:
- tiry
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
COLOR_SPACE
protected String
colorSpace
protected int
depth
static String
DEPTH
protected String
filePath
protected String
format
static String
FORMAT
protected int
height
static String
HEIGHT
protected int
width
static String
WIDTH
-
Constructor Summary
Constructors Constructor Description ImageInfo()
ImageInfo(String width, String height, String format, String filePath)
ImageInfo(String width, String height, String format, String depth, String filePath)
ImageInfo(String width, String height, String format, String depth, String colorSpace, String filePath)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImageInfo
fromMap(Map<String,Serializable> map)
String
getColorSpace()
int
getDepth()
File
getFile()
String
getFilePath()
String
getFormat()
int
getHeight()
int
getWidth()
void
setColorSpace(String colorSpace)
void
setDepth(int depth)
void
setFormat(String format)
void
setHeight(int height)
void
setWidth(int width)
Map<String,Serializable>
toMap()
Returns aMap
of attributes for thisImageInfo
.String
toString()
-
-
-
Field Detail
-
WIDTH
public static final String WIDTH
- See Also:
- Constant Field Values
-
HEIGHT
public static final String HEIGHT
- See Also:
- Constant Field Values
-
DEPTH
public static final String DEPTH
- See Also:
- Constant Field Values
-
FORMAT
public static final String FORMAT
- See Also:
- Constant Field Values
-
COLOR_SPACE
public static final String COLOR_SPACE
- See Also:
- Constant Field Values
-
width
protected int width
-
height
protected int height
-
depth
protected int depth
-
format
protected String format
-
colorSpace
protected String colorSpace
- Since:
- 5.9.5
-
filePath
protected String filePath
-
-
Method Detail
-
fromMap
public static ImageInfo fromMap(Map<String,Serializable> map)
-
getWidth
public int getWidth()
-
setWidth
public void setWidth(int width)
-
getHeight
public int getHeight()
-
setHeight
public void setHeight(int height)
-
getFormat
public String getFormat()
-
setFormat
public void setFormat(String format)
-
getFilePath
public String getFilePath()
-
getFile
public File getFile()
-
getDepth
public int getDepth()
-
setDepth
public void setDepth(int depth)
-
getColorSpace
public String getColorSpace()
- Since:
- 5.9.5
-
setColorSpace
public void setColorSpace(String colorSpace)
- Since:
- 5.9.5
-
toMap
public Map<String,Serializable> toMap()
Returns aMap
of attributes for thisImageInfo
.Used when saving this
ImageInfo
to aDocumentModel
property.- Since:
- 7.1
-
-