Class WmfImageData
java.lang.Object
com.itextpdf.io.image.ImageData
com.itextpdf.kernel.pdf.canvas.wmf.WmfImageData
Image implementation for WMF, Windows Metafile.
-
Field Summary
FieldsFields 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
ConstructorsConstructorDescriptionWmfImageData
(byte[] bytes) Creates a WmfImage from a byte[].WmfImageData
(String fileName) Creates a WmfImage from a file.WmfImageData
(URL url) Creates a WmfImage from a URL. -
Method Summary
Modifier and TypeMethodDescriptionprivate static boolean
imageTypeIs
(byte[] imageType, byte[] compareWith) private static byte[]
readImageType
(byte[] bytes) private static byte[]
readImageType
(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
-
Field Details
-
wmf
private static final byte[] wmf
-
-
Constructor Details
-
WmfImageData
Creates a WmfImage from a file.- Parameters:
fileName
- pah to the file- Throws:
MalformedURLException
- aMalformedURLException
-
WmfImageData
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
-
-
Method Details
-
imageTypeIs
private static boolean imageTypeIs(byte[] imageType, byte[] compareWith) -
readImageType
-
readImageType
private static byte[] readImageType(byte[] bytes)
-