Chapter 2 Graphics Tutorial
2-32
With 1 specified for the rule parameter of FILL, the method for determining whether a
point is inside the path involves drawing a ray from that point in any direction and count-
ing the number of times the ray crosses segments of the path. The point is said to be
inside the path if the result is an odd number; if the result is an even number, the point is
said to be outside the path.
The non-zero winding rule also draws a ray from a point in any direction to determine
whether or not that point is inside the path and examines the points where a segment of
the path crosses the ray. However, it then starts counting from zero and adds one each
time a segment in the path crosses the ray from left to right; and subtracts one each time
a segment in the path crosses the ray from right to left. If the result of counting all the
crossings is zero, the point is said to be outside; otherwise the point is said to be inside
the path.
After filling the current path, the FILL command clears the path in the same manner as
NEWP.
Clipping Rectangle
Up to this point, we have discussed graphics objects to be drawn or stroked or filled as
paths. However, another PRESCRIBE command can be used to define a clipping tem-
plate for clipping texts, paths, and raster graphics. For this purpose, the CLPR (CLiP
Rectangular region) command is provided to define the rectangular region for clipping
paths.
When the printing system is turned on or reset with PRESCRIBE’s RES command, the
clipping rectangle is identical to the printable limits of the page. Subsequently, executing
the CLPR command reduces the clipping rectangle to the intersection of the objects on
the page and the rectangle defined by CLPR.
The following is an example of CLPR.
!R! RES; UNIT C;
NEWP;
SPD 1;
PMRA 6, 9, 3, 0;
PARC 6, 9, 3, 0, 360;
CLPR 3, 6, 9, 12;
STRK;
EXIT;
In this example, lines 1 through 5 draw a circle with an extra line thickness at the coordi-
nates defined by the PMRA command.
The CLPR command on line 6 constructs a rectangle with its left-upper corner posi-
tioned at coordinates 3, 6 and its right-bottom corner positioned at coordinates 9, 12
(both measured from the top and left edge limits of the page).
As with the rectangular area clipping, those parts of the circle that lie outside of the clip-
ping rectangle are erased when the path is stroked, producing the result as shown in the
figure on the next page.
The rectangle defined by CLPR does not clip the graphics objects which are drawn by
the standard mode graphics commands.
Summary of Contents for C8100DN - Color Laser Printer
Page 1: ...Technical Reference PRESCRIBE Commands...
Page 2: ......
Page 67: ...Examples of Macros 3 5 Figure 3 2 Macro Example 2...
Page 68: ...3 6 This page is left blank intentionally...
Page 84: ...4 16 This page is left blank intentionally...
Page 100: ...Chapter 5 Barcodes 5 16...
Page 114: ...Chapter 6 Permanent Parameters 6 14...
Page 123: ...IBM Proprinter X24E Emulation Mode 1 7 9 IBM Symbol Sets IBM PC 8 341 IBM PC 8 D N 373...
Page 124: ...Chapter 7 Emulation 7 10 IBM PC 850 405 IBM PC 860 30...
Page 125: ...IBM Proprinter X24E Emulation Mode 1 7 11 IBM PC 863 62 IBM PC 865 94...
Page 130: ...Chapter 7 Emulation 7 16 Diablo 630 Symbol Sets DIABLO US 29 Diablo France 61...
Page 131: ...Diablo 630 Emulation Mode 2 7 17 Diablo Germany 93 Diablo U K 125...
Page 132: ...Chapter 7 Emulation 7 18 Diablo Denmark 157 Diablo Sweden 189...
Page 133: ...Diablo 630 Emulation Mode 2 7 19 Diablo Italy 221 Diablo Spain 253...
Page 134: ...Chapter 7 Emulation 7 20 Diablo Japan 285...
Page 140: ...Chapter 7 Emulation 7 26 LQ 850 Symbol Sets LQ US 28 LQ France 60...
Page 141: ...Epson LQ 850 Emulation Mode 5 7 27 LQ Germany 92 LQ U K 124...
Page 142: ...Chapter 7 Emulation 7 28 LQ Italy 220 LQ Spain 252...
Page 143: ...Chapter 7 Emulation 7 29 LQ Japan 284 LQ Norway 316...
Page 144: ...Chapter 7 Emulation 7 30 LQ Denmark 2 348 LQ Spain 2 380...
Page 145: ...Epson LQ 850 Emulation Mode 5 7 31 Latin America 412 LQ Denmark 156...
Page 146: ...Chapter 7 Emulation 7 32 LQ Sweden 188...
Page 181: ...HP LaserJet Emulation Mode 6 7 67 LaserJet Symbol Sets ISO 60 Norway 0D ISO 15 Italian 0I...
Page 182: ...Chapter 7 Emulation 7 68 ECMA 94 Latin 1 0N ISO 11 Sweden 0S...
Page 183: ...HP LaserJet Emulation Mode 6 7 69 ISO 6 ASCII 0U ISO 4 U K 1E...
Page 184: ...Chapter 7 Emulation 7 70 ISO 69 France 1F ISO 21 Germany 1G...
Page 185: ...HP LaserJet Emulation Mode 6 7 71 US Legal 1U ISO Latin 2 2N...
Page 186: ...Chapter 7 Emulation 7 72 ISO 17 Spain 2S PC Cyrillic 3R...
Page 187: ...HP LaserJet Emulation Mode 6 7 73 PS math 5M ISO Latin 5 5N...
Page 188: ...Chapter 7 Emulation 7 74 Windows Latin 5 5T MS publishing 6J...
Page 189: ...HP LaserJet Emulation Mode 6 7 75 ISO Latin 6 6N Desktop 7J...
Page 190: ...Chapter 7 Emulation 7 76 Greek 8 8G Math 8 8M...
Page 191: ...HP LaserJet Emulation Mode 6 7 77 Turkish 8 8T HP Roman 8 8U...
Page 192: ...Chapter 7 Emulation 7 78 Windows Latin 2 9E Windows Greek 9G...
Page 193: ...HP LaserJet Emulation Mode 6 7 79 PC 1004 9J ISO Latin 9 9N...
Page 194: ...Chapter 7 Emulation 7 80 Win Cyrillic 9R PC Turkish 9T...
Page 195: ...HP LaserJet Emulation Mode 6 7 81 Windows 9U PC 851 Greek 10G...
Page 196: ...Chapter 7 Emulation 7 82 PS text 10J ISO Cyrillic 10N...
Page 197: ...HP LaserJet Emulation Mode 6 7 83 PC 855 Serbia 10R PC 869 Greek 11G...
Page 198: ...Chapter 7 Emulation 7 84 PC 8 Greek 12G Macintosh 12J...
Page 199: ...HP LaserJet Emulation Mode 6 7 85 ISO Greek 12N USSR GOST 12R...
Page 200: ...Chapter 7 Emulation 7 86 ABICOMP Brazil 13P PC 8 Bulgarian 13R...
Page 201: ...HP LaserJet Emulation Mode 6 7 87 PC 8 Greek 437G 14G ABICOMP Int 14P...
Page 202: ...Chapter 7 Emulation 7 88 PC Ukrainian 14R Pi font 15U...
Page 203: ...HP LaserJet Emulation Mode 6 7 89 PC 857 Turkish 16U PC 852 Latin 2 17U...
Page 204: ...Chapter 7 Emulation 7 90 ISO 10646 18N PC 853 Turkish 18U...
Page 205: ...HP LaserJet Emulation Mode 6 7 91 Winbalt 19L Windows Latin 1 19U...
Page 206: ...Chapter 7 Emulation 7 92 PC 860 Portugal 20U PC 861 Iceland 21U...
Page 207: ...HP LaserJet Emulation Mode 6 7 93 PC 863 Canada 23U PC 8 Polish 24Q...
Page 208: ...Chapter 7 Emulation 7 94 PC 865 Norway 25U PC 775 26U...
Page 209: ...HP LaserJet Emulation Mode 6 7 95 PC 8 PC Nova 27Q...
Page 222: ...Chapter 7 Emulation 7 108 KC GL Symbol Sets ANSI ASCII 0 Roman Extensions 7...
Page 223: ...HP 7550A Emulation KC GL Mode 8 7 109 Katakana 8 KC GL International Characters...
Page 256: ...7 142 This page is left blank intentionally...
Page 260: ......
Page 261: ......
Page 262: ...Rev 4 51 2008 6...