public class MetaDo extends Object
WmfImageHelper
.
Constructor and Description |
---|
MetaDo(InputStream in, PdfCanvas cb)
Creates a MetaDo instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isNullStrokeFill(boolean isRectangle)
Return true if the pen style is null and if it isn't a brush.
|
void |
outputText(int x, int y, int flag, int x1, int y1, int x2, int y2, String text)
Output Text at a certain x and y coordinate.
|
void |
readAll()
Reads and processes all the data of the InputMeta.
|
void |
strokeAndFill()
Stroke and fill the MetaPen and MetaBrush paths.
|
static byte[] |
wrapBMP(ImageData image)
Wrap a BMP image in an WMF.
|
static void |
writeDWord(OutputStream os, int v)
Writes the specified value to the specified outputstream as a dword.
|
static void |
writeWord(OutputStream os, int v)
Writes the specified value to the specified outputstream as a word.
|
public static final int META_SETBKCOLOR
public static final int META_SETBKMODE
public static final int META_SETMAPMODE
public static final int META_SETROP2
public static final int META_SETRELABS
public static final int META_SETPOLYFILLMODE
public static final int META_SETSTRETCHBLTMODE
public static final int META_SETTEXTCHAREXTRA
public static final int META_SETTEXTCOLOR
public static final int META_SETTEXTJUSTIFICATION
public static final int META_SETWINDOWORG
public static final int META_SETWINDOWEXT
public static final int META_SETVIEWPORTORG
public static final int META_SETVIEWPORTEXT
public static final int META_OFFSETWINDOWORG
public static final int META_SCALEWINDOWEXT
public static final int META_OFFSETVIEWPORTORG
public static final int META_SCALEVIEWPORTEXT
public static final int META_LINETO
public static final int META_MOVETO
public static final int META_EXCLUDECLIPRECT
public static final int META_INTERSECTCLIPRECT
public static final int META_ARC
public static final int META_ELLIPSE
public static final int META_FLOODFILL
public static final int META_PIE
public static final int META_RECTANGLE
public static final int META_ROUNDRECT
public static final int META_PATBLT
public static final int META_SAVEDC
public static final int META_SETPIXEL
public static final int META_OFFSETCLIPRGN
public static final int META_TEXTOUT
public static final int META_BITBLT
public static final int META_STRETCHBLT
public static final int META_POLYGON
public static final int META_POLYLINE
public static final int META_ESCAPE
public static final int META_RESTOREDC
public static final int META_FILLREGION
public static final int META_FRAMEREGION
public static final int META_INVERTREGION
public static final int META_PAINTREGION
public static final int META_SELECTCLIPREGION
public static final int META_SELECTOBJECT
public static final int META_SETTEXTALIGN
public static final int META_CHORD
public static final int META_SETMAPPERFLAGS
public static final int META_EXTTEXTOUT
public static final int META_SETDIBTODEV
public static final int META_SELECTPALETTE
public static final int META_REALIZEPALETTE
public static final int META_ANIMATEPALETTE
public static final int META_SETPALENTRIES
public static final int META_POLYPOLYGON
public static final int META_RESIZEPALETTE
public static final int META_DIBBITBLT
public static final int META_DIBSTRETCHBLT
public static final int META_DIBCREATEPATTERNBRUSH
public static final int META_STRETCHDIB
public static final int META_EXTFLOODFILL
public static final int META_DELETEOBJECT
public static final int META_CREATEPALETTE
public static final int META_CREATEPATTERNBRUSH
public static final int META_CREATEPENINDIRECT
public static final int META_CREATEFONTINDIRECT
public static final int META_CREATEBRUSHINDIRECT
public static final int META_CREATEREGION
public PdfCanvas cb
public InputMeta in
public MetaDo(InputStream in, PdfCanvas cb)
in
- inputstream containing the data
cb
- PdfCanvas
public void readAll() throws IOException
IOException
- an IOException
public void outputText(int x, int y, int flag, int x1, int y1, int x2, int y2, String text) throws IOException
x
- x-coordinate
y
- y-coordinate
flag
- flag indicating clipped or opaque
x1
- x1-coordinate of the rectangle if clipped or opaque
y1
- y1-coordinate of the rectangle if clipped or opaque
x2
- x2-coordinate of the rectangle if clipped or opaque
y2
- y1-coordinate of the rectangle if clipped or opaque
text
- text to output
IOException
- an IOException
public boolean isNullStrokeFill(boolean isRectangle)
isRectangle
- value to decide how to change the state. If true state.setLineJoinRectangle(cb) is called, if false state.setLineJoinPolygon(cb) is called.
public void strokeAndFill()
public static byte[] wrapBMP(ImageData image) throws IOException
image
- the BMP image to be wrapped
IOException
- an IOException
public static void writeWord(OutputStream os, int v) throws IOException
os
- outputstream to write the word to
v
- value to be written
IOException
- an IOException
public static void writeDWord(OutputStream os, int v) throws IOException
os
- outputstream to write the dword to
v
- value to be written
IOException
- an IOException
Copyright © 1998–2020 iText Group NV. All rights reserved.