public class AFPImageObjectInfo extends AFPDataObjectInfo
Constructor and Description |
---|
AFPImageObjectInfo()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
int |
getBitsPerPixel()
Returns the number of bits used per pixel
|
int |
getCompression()
Returns the compression type
|
boolean |
hasCompression()
Returns true if this image uses compression
|
boolean |
isColor()
Returns true if this is a color image
|
boolean |
isSubtractive()
Indicates whether additive or subtractive mode is set.
|
void |
setBitsPerPixel(int bitsPerPixel)
Sets the number of bits per pixel
|
void |
setColor(boolean color)
Sets if this image is color
|
void |
setCompression(int compression)
Sets the compression used with this image
|
void |
setSubtractive(boolean subtractive)
Set either additive or subtractive mode (used for ASFLAG).
|
java.lang.String |
toString() |
getData, getDataHeight, getDataHeightRes, getDataWidth, getDataWidthRes, getMappingOption, getMimeType, getObjectAreaInfo, getObjectType, getResourceInfo, getUri, isCreatePageSegment, setCreatePageSegment, setData, setDataHeight, setDataHeightRes, setDataWidth, setDataWidthRes, setMappingOption, setMimeType, setObjectAreaInfo, setResourceInfo, setUri
public void setBitsPerPixel(int bitsPerPixel)
bitsPerPixel
- the number of bits per pixelpublic void setColor(boolean color)
color
- true if this is a color imagepublic int getBitsPerPixel()
public boolean isColor()
public boolean hasCompression()
public int getCompression()
public void setCompression(int compression)
compression
- the type of compression used with this imagepublic void setSubtractive(boolean subtractive)
subtractive
- true for subtractive mode, false for additive modepublic boolean isSubtractive()
public java.lang.String toString()
toString
in class AFPDataObjectInfo
Copyright 1999-2012 The Apache Software Foundation. All Rights Reserved.