This repository has been archived by the owner on Nov 29, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPicFormat.txt
120 lines (99 loc) · 6.22 KB
/
PicFormat.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
QUICKDRAW INTERNAL PICTURE FORMAT:
OPCODE NAME ADDITIONAL PARAMS TOTAL BYTES
00 nop none 1
01 clipRgn region 1 + region
02 bkPat pattern 9
03 txFont font(word) 3
04 txFace face(byte) 2
05 txMode mode(word) 3
06 spExtra extra(fixed Point) 5
07 pnSize pnSize(point) 5
08 pnMode mode(word) 3
09 pnPat pattern 9
0A thePat pattern 9
0B ovSize point 5
0C origin dh(word),dv(word) 5
0D txSize size(word) 3
0E fgColor color(long) 4
0F bkColor color(long) 4
10 txRatio numer(pt), denom(pt) 9
11 picVersion version(byte) 2
20 line pnLoc(pt), newPt(pt) 9
21 line from newPt(pt) 5
22 short line pnLoc(pt), dh, dv(-128..127) 7
23 short line from dh, dv(-128..127) 3
28 long text: txLoc(pt), count(0..255), text 6 + text
29 DH text: dh(0..255), count(0..255), text 3 + text
2A DV text: dv(0..255), count(0..255), text 3 + text
2B DHDV text: dh,dv(0,..255), count(0..255), text 4 + text
30 frameRect rect 9
31 paintRect rect 9
32 eraseRect rect 9
33 invertRect rect 9
34 fillRect rect 9
38 frameSameRect 1
39 paintSameRect 1
3A eraseSameRect 1
3B invertSameRect 1
3C fillSameRect 1
40 frameRRect rect 9
41 paintRRect rect 9
42 eraseRRect rect 9
43 invertRRect rect 9
44 fillRRect rect 9
48 frameSameRRect 1
49 paintSameRRect 1
4A eraseSameRRect 1
4B invertSameRRect 1
4C fillSameRRect 1
50 frameOval rect 9
51 paintOval rect 9
52 eraseOval rect 9
53 invertOval rect 9
54 fillOval rect 9
58 frameSameOval 1
59 paintSameOval 1
5A eraseSameOval 1
5B invertSameOval 1
5C fillSameOval 1
60 frameArc rect 9
61 paintArc rect 9
62 eraseArc rect 9
63 invertArc rect 9
64 fillArc rect 9
68 frameSameArc 1
69 paintSameArc 1
6A eraseSameArc 1
6B invertSameArc 1
6C fillSameArc 1
70 framePoly poly 1 + poly
71 paintPoly poly 1 + poly
72 erasePoly poly 1 + poly
73 invertPoly poly 1 + poly
74 fillPoly poly 1 + poly
78 frameSamePoly (not implemented yet)
79 paintSamePoly (not implemented yet)
7A eraseSamePoly (not implemented yet)
7B invertSamePoly (not implemented yet)
7C fillSamePoly (not implemented yet)
80 frameRgn rgn 1 + region
81 paintRgn rgn 1 + region
82 eraseRgn rgn 1 + region
83 invertRgn rgn 1 + region
84 fillRgn rgn 1 + region
88 frameSameRgn (not implemented yet)
89 paintSameRgn (not implemented yet)
8A eraseSameRgn (not implemented yet)
8B invertSameRgn (not implemented yet)
8C fillSameRgn (not implemented yet)
90 BitsRect rowBytes, bounds, srcRect, dstRect, mode,
byteCount, unpacked bitData
91 BitsRgn rowBytes, bounds, srcRect, dstRect, mode,
maskRgn, byteCount, unpacked bitData
98 PackBitsRect rowBytes, bounds, srcRect, dstRect, mode
byteCount, packed bitData
99 PackBitsRgn rowBytes, bounds, srcRect, dstRect, mode
maskRgn, byteCount, packed bitData
A0 shortComment kind(word) 3
A1 longComment kind(word) size(word) data 5 + data
FF endOfPicture