Package com.itextpdf.io.image
Class ImageData
java.lang.Object
com.itextpdf.io.image.ImageData
- Direct Known Subclasses:
-
Jbig2ImageData
,Jpeg2000ImageData
,JpegImageData
,RawImageData
,WmfImageData
-
Field Summary
Modifier and TypeFieldDescriptionprotected int
protected int
Is the number of components used to encode colorspace.protected int
protected byte[]
protected float[]
protected boolean
protected int
protected int
protected String
protected float
protected ImageData
protected int
protected boolean
protected boolean
protected boolean
protected Long
protected ImageType
protected IccProfile
protected float
protected int[]
protected URL
protected float
protected float
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
Checks if image can be inlineint
getBpc()
int
Gets the number of components used to encode colorspace.int
byte[]
getData()
float[]
int
getDpiX()
int
getDpiY()
float
float
int[]
getUrl()
float
getWidth()
float
boolean
boolean
boolean
boolean
isMask()
boolean
boolean
void
makeMask()
void
setBpc
(int bpc) void
setColorEncodingComponentsNumber
(int colorEncodingComponentsNumber) Sets the number of components used to encode colorspace.void
setColorTransform
(int colorTransform) void
setDecode
(float[] decode) void
setDeflated
(boolean deflated) void
setDpi
(int dpiX, int dpiY) void
void
setHeight
(float height) void
setImageAttributes
(Map<String, Object> imageAttributes) void
setImageMask
(ImageData imageMask) void
setInterpolation
(boolean interpolation) void
setInverted
(boolean inverted) void
setProfile
(IccProfile profile) void
setRotation
(float rotation) void
setTransparency
(int[] transparency) void
void
setWidth
(float width) void
setXYRatio
(float XYRatio)
-
Field Details
-
url
-
transparency
protected int[] transparency -
originalType
-
width
protected float width -
height
protected float height -
data
protected byte[] data -
imageSize
protected int imageSize -
bpc
protected int bpc -
colorEncodingComponentsNumber
protected int colorEncodingComponentsNumberIs the number of components used to encode colorspace. -
decode
protected float[] decode -
decodeParms
-
inverted
protected boolean inverted -
rotation
protected float rotation -
profile
-
dpiX
protected int dpiX -
dpiY
protected int dpiY -
colorTransform
protected int colorTransform -
deflated
protected boolean deflated -
mask
protected boolean mask -
imageMask
-
interpolation
protected boolean interpolation -
XYRatio
protected float XYRatio -
filter
-
imageAttributes
-
mySerialId
-
-
Constructor Details
-
ImageData
-
ImageData
-
-
Method Details
-
isRawImage
public boolean isRawImage() -
getUrl
-
setUrl
-
getTransparency
public int[] getTransparency() -
setTransparency
public void setTransparency(int[] transparency) -
isInverted
public boolean isInverted() -
setInverted
public void setInverted(boolean inverted) -
getRotation
public float getRotation() -
setRotation
public void setRotation(float rotation) -
getProfile
-
setProfile
-
getDpiX
public int getDpiX() -
getDpiY
public int getDpiY() -
setDpi
public void setDpi(int dpiX, int dpiY) -
getColorTransform
public int getColorTransform() -
setColorTransform
public void setColorTransform(int colorTransform) -
isDeflated
public boolean isDeflated() -
setDeflated
public void setDeflated(boolean deflated) -
getOriginalType
-
getColorEncodingComponentsNumber
public int getColorEncodingComponentsNumber()Gets the number of components used to encode colorspace.- Returns:
- the number of components used to encode colorspace
-
setColorEncodingComponentsNumber
public void setColorEncodingComponentsNumber(int colorEncodingComponentsNumber) Sets the number of components used to encode colorspace.- Parameters:
-
colorEncodingComponentsNumber
- the number of components used to encode colorspace
-
getData
public byte[] getData() -
canBeMask
public boolean canBeMask() -
isMask
public boolean isMask() -
getImageMask
-
setImageMask
-
isSoftMask
public boolean isSoftMask() -
makeMask
public void makeMask() -
getWidth
public float getWidth() -
setWidth
public void setWidth(float width) -
getHeight
public float getHeight() -
setHeight
public void setHeight(float height) -
getBpc
public int getBpc() -
setBpc
public void setBpc(int bpc) -
isInterpolation
public boolean isInterpolation() -
setInterpolation
public void setInterpolation(boolean interpolation) -
getXYRatio
public float getXYRatio() -
setXYRatio
public void setXYRatio(float XYRatio) -
getImageAttributes
-
setImageAttributes
-
getFilter
-
setFilter
-
getDecodeParms
-
getDecode
public float[] getDecode() -
setDecode
public void setDecode(float[] decode) -
canImageBeInline
public boolean canImageBeInline()Checks if image can be inline- Returns:
- if the image can be inline
-