![]() | |
Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
com.lowagie.text.Rectangle
com.lowagie.text.Image
com.lowagie.text.ImgWMF
public class ImgWMF
extends Image
ImgWMF
is the representation of a windows metafile
that has to be inserted into the document
Field Summary |
Fields inherited from class com.lowagie.text.Image | |
AX , AY , BX , BY , CX , CY , DEFAULT , DX , DY , LEFT , MIDDLE , ORIGINAL_BMP , ORIGINAL_GIF , ORIGINAL_JPEG , ORIGINAL_NONE , ORIGINAL_PNG , ORIGINAL_PS , ORIGINAL_TIFF , ORIGINAL_WMF , RIGHT , TEXTWRAP , UNDERLYING , XYRatio , absoluteX , absoluteY , additional , alignment , alt , annotation , bpc , colorspace , deflated , directReference , dpiX , dpiY , excUri , excUriEsc , imageMask , indentationLeft , indentationRight , initialRotation , interpolation , invert , layer , markupAttributes , mask , mySerialId , originalData , originalType , plainHeight , plainWidth , profile , rawData , rotation , scaledHeight , scaledWidth , serialId , smask , spacingAfter , spacingBefore , template , transparency , type , url , widthPercentage |
Fields inherited from class com.lowagie.text.Rectangle | |
BOTTOM , BOX , LEFT , NO_BORDER , RIGHT , TOP , UNDEFINED , background , border , borderColorBottom , borderColorLeft , borderColorRight , borderColorTop , borderWidth , borderWidthBottom , borderWidthLeft , borderWidthRight , borderWidthTop , color , llx , lly , markupAttributes , rotation , urx , ury , useVariableBorders |
Fields inherited from interface com.lowagie.text.Element | |
ALIGN_BASELINE , ALIGN_BOTTOM , ALIGN_CENTER , ALIGN_JUSTIFIED , ALIGN_JUSTIFIED_ALL , ALIGN_LEFT , ALIGN_MIDDLE , ALIGN_RIGHT , ALIGN_TOP , ALIGN_UNDEFINED , ANCHOR , ANNOTATION , AUTHOR , CCITTG3_1D , CCITTG3_2D , CCITTG4 , CCITT_BLACKIS1 , CCITT_ENCODEDBYTEALIGN , CCITT_ENDOFBLOCK , CCITT_ENDOFLINE , CELL , CHAPTER , CHUNK , CREATIONDATE , CREATOR , HEADER , IMGRAW , IMGTEMPLATE , JPEG , KEYWORDS , LIST , LISTITEM , MARKED , MULTI_COLUMN_TEXT , PARAGRAPH , PHRASE , PRODUCER , PTABLE , RECTANGLE , ROW , SECTION , SUBJECT , TABLE , TITLE |
Constructor Summary | |
| |
| |
| |
Method Summary | |
private void |
|
void |
|
public ImgWMF(String filename) throws BadElementException, MalformedURLException, IOException
Constructs anImgWMF
-object, using a filename.
- Parameters:
filename
- aString
-representation of the file that contains the image.
public ImgWMF(URL url) throws BadElementException, IOException
Constructs anImgWMF
-object, using an url.
- Parameters:
url
- theURL
where the image can be found
- Throws:
BadElementException
- on error
public ImgWMF(byte[] img) throws BadElementException, IOException
Constructs anImgWMF
-object from memory.
- Parameters:
img
- the memory image
- Throws:
BadElementException
- on error
(package private) ImgWMF(Image image)
Constructs anImage
-object, using an url .
- Parameters:
image
- another Image object.
private void processParameters() throws BadElementException, IOException
This method checks if the image is a valid WMF and processes some parameters.
- Throws:
BadElementException
-
public void readWMF(PdfTemplate template) throws IOException, DocumentException
Reads the WMF into a template.
- Parameters:
template
- the template to read to
- Throws:
DocumentException
- on error