Kyocera FS 1028DP User Manual
Here you can view all the pages of manual Kyocera FS 1028DP User Manual. The Kyocera manuals for Printer are available online for free. You can easily download all the documents as PDF.
Page 51
Path Mode Graphics 2-29 !R! RES; UNIT C; NEWP; SPD .1;FLAT 60; PMZP 5, 5; PCRP 4, 2, 5, 4, 4, 0; STRK; PAGE; EXIT; Figure 2. 30. Curve with Flatness 60 Both of these programs draw an identical curve. The only difference between the two is in the flatness, which is specified on line 2. Closed Paths When the end point of a path connects to its starting point, the path is said to be closed. A closed path can be stroked, in the same manner as an open path, or it can be filled with gray-scale...
Page 52
Chapter 2 Graphics Tutorial 2-30 Figure 2. 31. A Closed Path Filled Areas !R! RES; UNIT C;NEWP; GPAT .5; PMZP 4, 2; PARC 3, 3, 1, 90, 270; PARC 5, 3, 1, 270, 90; FILL 1; PAGE; EXIT; This program is similar to the previous one. In this case, we choose to fill the path instead of stroking it. We select a shade of gray for filling the path (.5, a value directly between black and white) with the GPAT (set Gray PATtern) command on line 3. First, we construct the path by drawing arcs around the...
Page 53
Path Mode Graphics 2-31 With simple convex paths such as that shown below, the entire enclosed area is filled. Figure 2. 32. Simple Filled Paths However, when a path consists of multiple cl osed subpaths or intersects itself as shown in the next two figures, the rule determines areas that are deemed to be inside the path. !R! RES; UNIT C; PMZP 5, 5; PMRA 5, 5, 2, 0; PARC 5, 5, 2, 0, 360; PMRA 5.2, 5.2, 1.5, 0; PARC 5.2, 5.2, 1.5, 0, 360; PMRA 5.5, 5.5, 1, 0; PARC 5.5, 5.5, 1, 0, 360; FILL 1; PMZP...
Page 54
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...
Page 55
Path Mode Graphics 2-33 Figure 2. 34. Clipping Rectangle Example Printing with Character Paths When a resident scalable (outline) font is selected, you can treat a character as a path and add it to the current path. The PRESCRI BE command is CPTH (Character PaTH). Paths created with the CPTH command can be ei ther stroked or filled. See the following example. !R! RES; UNIT P; NEWP; PAT 26; SFNT ’Helvetica-Bd’, 54; PMZP 72, 144; CPTH xyz; FILL 1; PAGE; EXIT; Figure 2. 35. Character Path Line...
Page 56
Chapter 2 Graphics Tutorial 2-34 Next, the SFNT (Select current FoNT by typeface) on line 5 selects Helvetica Bold, a scalable (outline) font as the current font and scales the font to a height of 54 points. Use of SFNT and other font selection commands are explained more fully in PRESCRIBE Commands Command Reference . The PMZP command on line 6 moves the cursor to the point that is 72 points (1 inch) from the left edge limit and 2 inches from the top edge limit. The CPTH command on line 7...
Page 57
Raster Graphics 2-35 raster data represents a repeating pattern or an uncompressed (unencoded) pattern. It also determines the number of pattern repetitions or bytes of uncompressed data. The control byte is a two’s complement value that can be either zer o, positive, or nega- tive. A negative value (-1 to -127) indicates that the following byte represents a repeating pattern. The number of repetitions of the pattern is determined by the absolute value of the control byte. If the control byte is...
Page 58
Chapter 2 Graphics Tutorial 2-36 Figure 2. 36. Presentation Modes A secondary function of the SRO command specifies the width and height of the raster area. When a width and height are explicitly specified, any part of the raster image that extends outside of the area is clipped. The STR command specifies the resolution at which raster data is printed. The default resolution is 75 dots per inch, or the equivalent of 16 physical dots for each raster-line dot. The following figure shows how a...
Page 59
Raster Graphics 2-37 tagged image file format raster data. Both commands are used with the ENDR (END Raster) command. Printing Raster Data The normal sequence for printing raster data is to set the presentation mode (and, if desired, the height and width of the raster image area) with the SRO command, to set the dot resolution with the STR command, then to print the raster data with the RVRD or RVCD/ENDR command pair. Changing the Printing S ystem’s Imaging Model The printing system’s imaging...
Page 60
Chapter 2 Graphics Tutorial 2-38 Figure 2. 38. Image Models PRESCRIBE establishes the printing system’s imaging model with the SIMG (Set IMaGe model) command. This command uses the following format. SIMG operation-mode ; operation-mode is a number from 1 to 6 that determines the image model as follows. Operation mode Source image Pattern 1 Transparent – 2 Opaque – Source transparency mode = 0 (transparent) Pattern transparency mode = 0 (transparent) Source transparency m ode = 0 (transparent)...