WXP version 5
File Reference

WXP Metafile Format

Metafile Tags

Here is a list of metafile tags.

Colors:

CLR ind red grn blu
Sets red, green and blue values (0-1)for a color index (0-255)

Fillarea:

FA ## x,y [x,y...]
Filled area, ## is number of points, x,y are vertex locations.
FA_CLR col
Filled area color index
FA_INT style
Filled area interior style - style is 1=solid, 2=pattern
FA_ST style
Filled area style (pattern index):
SOLID           0
STIPPLED        1
OPEN STIPPLED   2
RANDOM STIPPLED 3
LARGE STIPPLED  4
VERT LINE ||    5
DIAG LINE //    6
DIAG LINE \\    7
HORIZ LINE ==   8
HATCHED   XX    9
0% FILL        10
10% FILL       11
20% FILL       12
30% FILL       13
40% FILL       14
50% FILL       15
60% FILL       16
70% FILL       17
80% FILL       18
90% FILL       19

Polyline:

PL ## x,y [x,y...]
Polyline, ## is number of points, x,y are vertex locations
PL_CLR col
Polyline color index
PL_LW wid
Polyline width (width of drawn line)
PL_TYPE type
Polyline style, type is 1=solid, 2=dash, 3=long/short dash, 4=long/long/short dash, 5=dots

Polymarkers:

PM ## x,y [x,y...]
Polymarker, ## is number of points, x,y
PM_CLR col
Polymarker color index
PM_SIZE size
Polymarker size
PM_TYPE type 
Polymarker type:
POINT    1
PLUS     2
STAR     3
CIRCLE   4
X        5
SQUARE   6
TRIANGLE 7
DOT      8
INVTRNGL 9

PM_WDTH wid   
Polymarker line width (width of drawn line)

Text:

TE x,y text_string
Text, x,y is location and text_string is the text to display
TE_CLR col
Text color index
TE_EXP exp
Text expansion factor - horizontal expansion factor of text
TE_WDTH wid
Text width (width of drawn line)
TE_HGHT height
Text height
TE_UP x,y 
Text up vector, sets rotation angle as x,y vector
TE_ALGN h v 
Text alignment in horizontal and vertical:
horizontal: 1=left, 2=center, 3=right
vertical: 1=top, 2=cap, 3=half, 4=base, 5=bottom
TE_SPC spc
Text spacing factor (space after text character)
TE_CSPC spc
Text character spacing - fixed width font char width
TE_FNT font 
Text font number

Transformations:

WS_WIN id x y x y
Workstation window - where in workstation space to place plot
WS_VP id x y x y
Workstation viewport - not used
TR num
Selects a transform by number
WIN num x y x y
Sets window coordinates for transform num - sets actual coordinate system to use within viewport.  The window coordinates are used by text, line and filled area commands.
VP num x y x y
Sets viewport coordinates for transform num - selects area within workstation window to plot, can be referred to as clip rectangle

Extra:

ME message
Message or comment
SEG_CR seg 
Create segment
SEG_CL seg  
Close segment
SEG_DE seg
Delete segment
CLR_REG x y x y
Clear region

Last updated August 10, 1998