Class WmfImageData
- java.lang.Object
-
- com.itextpdf.io.image.ImageData
-
- com.itextpdf.kernel.pdf.canvas.wmf.WmfImageData
-
public class WmfImageData extends ImageData
Image implementation for WMF, Windows Metafile.
-
-
Field Summary
Fields Modifier and Type Field Description private static byte[]
wmf
-
Fields inherited from class com.itextpdf.io.image.ImageData
bpc, colorEncodingComponentsNumber, colorTransform, data, decode, decodeParms, deflated, dpiX, dpiY, filter, height, imageAttributes, imageMask, imageSize, interpolation, inverted, mask, mySerialId, originalType, profile, rotation, transparency, url, width, XYRatio
-
-
Constructor Summary
Constructors Constructor Description WmfImageData(byte[] bytes)
Creates a WmfImage from a byte[].WmfImageData(java.lang.String fileName)
Creates a WmfImage from a file.WmfImageData(java.net.URL url)
Creates a WmfImage from a URL.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static boolean
imageTypeIs(byte[] imageType, byte[] compareWith)
private static byte[]
readImageType(byte[] bytes)
private static byte[]
readImageType(java.net.URL source)
-
Methods inherited from class com.itextpdf.io.image.ImageData
canBeMask, canImageBeInline, getBpc, getColorEncodingComponentsNumber, getColorTransform, getData, getDecode, getDecodeParms, getDpiX, getDpiY, getFilter, getHeight, getImageAttributes, getImageMask, getOriginalType, getProfile, getRotation, getTransparency, getUrl, getWidth, getXYRatio, isDeflated, isInterpolation, isInverted, isMask, isRawImage, isSoftMask, makeMask, setBpc, setColorEncodingComponentsNumber, setColorTransform, setDecode, setDeflated, setDpi, setFilter, setHeight, setImageAttributes, setImageMask, setInterpolation, setInverted, setProfile, setRotation, setTransparency, setUrl, setWidth, setXYRatio
-
-
-
-
Constructor Detail
-
WmfImageData
public WmfImageData(java.lang.String fileName) throws java.net.MalformedURLException
Creates a WmfImage from a file.- Parameters:
fileName
- pah to the file- Throws:
java.net.MalformedURLException
- aMalformedURLException
-
WmfImageData
public WmfImageData(java.net.URL url)
Creates a WmfImage from a URL.- Parameters:
url
- URL to the file
-
WmfImageData
public WmfImageData(byte[] bytes)
Creates a WmfImage from a byte[].- Parameters:
bytes
- the image bytes
-
-