Package com.itextpdf.io.image
Class GifImageData
- java.lang.Object
-
- com.itextpdf.io.image.GifImageData
-
public class GifImageData extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private byte[]
data
private java.util.List<ImageData>
frames
private float
logicalHeight
private float
logicalWidth
private java.net.URL
url
-
Constructor Summary
Constructors Modifier Constructor Description protected
GifImageData(byte[] data)
protected
GifImageData(java.net.URL url)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addFrame(ImageData frame)
protected byte[]
getData()
java.util.List<ImageData>
getFrames()
float
getLogicalHeight()
float
getLogicalWidth()
protected java.net.URL
getUrl()
(package private) void
loadData()
Load data by URL.void
setLogicalHeight(float logicalHeight)
void
setLogicalWidth(float logicalWidth)
-
-
-
Field Detail
-
logicalHeight
private float logicalHeight
-
logicalWidth
private float logicalWidth
-
frames
private java.util.List<ImageData> frames
-
data
private byte[] data
-
url
private java.net.URL url
-
-
Method Detail
-
getLogicalHeight
public float getLogicalHeight()
-
setLogicalHeight
public void setLogicalHeight(float logicalHeight)
-
getLogicalWidth
public float getLogicalWidth()
-
setLogicalWidth
public void setLogicalWidth(float logicalWidth)
-
getFrames
public java.util.List<ImageData> getFrames()
-
getData
protected byte[] getData()
-
getUrl
protected java.net.URL getUrl()
-
addFrame
protected void addFrame(ImageData frame)
-
loadData
void loadData() throws java.io.IOException
Load data by URL. url must be not null. Note, this method doesn't check if data or url is null.- Throws:
java.io.IOException
-
-