Home > Kyocera > Printer > Kyocera FS 1028DP User Manual

Kyocera FS 1028DP User Manual

    Download as PDF Print this page Share this page

    Have a look at the manual Kyocera FS 1028DP User Manual online for free. It’s possible to download the document as PDF or print. UserManuals.tech offer 73 Kyocera manuals and user’s guides for free. Share the user manual or guide on Facebook, Twitter or Google+.

    							2-9
    Drawing Circles 
    The CIR (draw circle) command draws a circle of a specified radius using the line thick-
    ness set by the SPD (set pen diameter) comm and. The circle drawn is centered on the 
    current cursor position; the position of the cursor remains unaffected. See the following 
    example: 
    !R! RES; UNIT C;
    SPD 0.1;
    MZP 8, 8;
    CIR 1;
    CIR 2;
    CIR 3;
    PAGE;
    EXIT; 
    Figure 2. 7.  Circles   
    Lines 1, 2 and 3 start PRESCRIBE mode, reset  the printing system to its default parame-
    ters, establish the unit of measurement as cen timeters, and set the line width to 0.1 centi-
    meters. 
    Next, the MZP command moves the cursor to th e point that is 8 centimeters to the right 
    of the left edge limit and 8 centimeters below the top edge limit. 
    Lines 5, 6, and 7 draw three circles with radii of 1, 2, and 3 centimeters. 
    Drawing Filled Shapes 
    The standard graphics mode provides two ty pes of filled shapes: arcs and blocks. Such 
    shapes are filled with one of the printing sy stem’s predefined patterns, or with a user 
    defined pattern. 
    Filled areas of other shapes can be printed us ing path mode graphics. For details, see the 
    explanation in section  Path Mode Graphics on page 16.
    Downloaded From ManualsPrinter.com Manuals 
    						
    							Chapter 2 Graphics Tutorial
    2-10
    A filled block consists simply of a rectangle of any desired dimensions. A filled arc is an 
    area enclosed by an arc segment and the line  segments extending from the ends of the arc 
    to the center of the circle  of which the arc is a part. 
    This section shows how to select a fill pattern and print a filled block or arc. 
    Drawing Filled Blocks 
    The following command sequence prints the block shown below. 
    !R! RES; UNIT P;
    MZP 72, 72;
    PAT 6;
    BLK 72, -144, H;
    PAGE;
    EXIT; 
    Figure 2. 8.  A Filled Block   
    Lines 1 and 2 put the printing system in the PRESCRIBE mode, reset printing system 
    parameters and set the unit of measuremen t to points. (One point is equal to 1
    /
    72 inches.) 
    Next, the MZP command moves the cursor to the position 72 points to the right of the 
    left edge limit and 72 points below the top edge limit. 
    The PAT (select fill PATtern) command on line 4 of the program selects the fill pattern. 
    In this program, pattern number 6 is selected. 
    You can select from among any of the printing system’s 60 predefined fill patterns or 
    choose to define a pattern using the XPAT  (generate eXpanded PATtern) command. In 
    either case, the selection is made with the PAT command. For 1200-dpi and 600-dpi 
    models, the user can define the printing resolution (300, 600, 1200 dpi) of the pattern by 
    giving a second parameter to the PAT command. 
    You can also select a shade of  gray for filling the arc or block by using the GPAT (set 
    Gray PATtern) command. 
    It is possible to apply a color to a pattern specified using PAT, FPAT, GPAT or XPAT. 
    Note, however, that this may not always result in the exact same pattern as printed in 
    monochrome. 
    The way a color looks may differ when used  for different patterns even though the same 
    color has been specified. 
    Downloaded From ManualsPrinter.com Manuals 
    						
    							2-11
    The BLK (draw filled-in BLocK) command on line 5 actually draws the filled in block. 
    This command closely resembles the BOX co mmand explained in the preceding section. 
    However, whereas the BOX command draws a  line around a rectangular area, the BLK 
    command fills a rectangular area with the currently selected pattern. 
    As with the BOX command, th e position of the rectangular area with respect to the cur-
    sor depends on the sign of the values specified for width and height. The box is drawn to 
    the right of the cursor if width is positive, and to the left of the cursor if width is nega-
    tive; and the box is drawn below the cursor if height is positive, and above the cursor if 
    height is negative. 
    As with the BOX command, you can specify  an option parameter to make the cursor 
    move to a specified location after the box is  drawn. (The cursor remains unmoved if the 
    option parameter is omitted.) Values for this opt ion are H, V, E, L, N, and B, the same as 
    for BOX. 
    Drawing Filled Arcs 
    The ARC (draw filled-in ARC)  command is similar to the BLK command (described in 
    the preceding section) in that  it fills an area with a pre-defined pattern or a shade of gray. 
    The arc is drawn centered around the current  cursor position. The dimensions of the arc 
    are determined by user specified inner radi us, outer radius, starting angle, and ending 
    angle. 
    The following PRESCRIBE demo nstrates the ARC command.
     !R! CMNT Enter PRESCRIBE mode; RES; CMNT Reset printing system parameters;
    UNIT C; CMNT Set centimeters as unit;
    PAT 9; CMNT Select pattern 9;
    MZP 8, 8; CMNT Move cursor to point that is 8 cm; CMNT from left edge limit and;
    CMNT 8 cm from top edge limit;
    ARC 1, 2, 0, 90;
    PAGE;
    EXIT; 
    Figure 2. 9.  A Filled Arc   
    The ARC command on line 8  of the command sequence draws an arc with an inner 
    radius of 1 centimeter, an outer radius of 2  centimeters, a starting angle of 0 (straight up), 
    and an ending angle of 90 degrees. 
    The ARC command does not draw a line around the boundary of the filled-in area. 
    Downloaded From ManualsPrinter.com Manuals 
    						
    							Chapter 2 Graphics Tutorial
    2-12
    Defining Fill Patterns 
    With a little work, you can construct your own fill patterns. You can generate 8 × 8 dot 
    patterns using the FPAT (generate Fill PATtern) command, or 16 × 16 dot patterns using 
    the XPAT (generate eXpanded fill PATtern) command. This section gives examples of 
    both. 
    !R! RES;MZP 1, 1;
    FPAT 16, 40, 68, 130, 65, 34, 20, 8;
    BLK 1, 1;
    PAGE;
    EXIT; 
    Line 4 of this command sequence prints a filled block using a fill pattern defined by the 
    FPAT command on line 3. 
    Each of the eight numbers in the FPAT defines one row of an 8 
    × 8 dot pattern. The pat-
    tern follows: 
    Figure 2. 10.  Dot Pattern and a Filled Block   
    For this pattern, the numbers across the t op indicate the value of each column. The num-
    bers down the right side are the sums of the  values of columns that contain black dots in 
    that row. 
    Once this pattern has been defi ned by the FPAT command, it is used as the fill pattern 
    until printing system parameters are reset with RES, another pattern is selected with PAT, 
    a different pattern is defined with FPAT, or  a shade of gray is defined and selected by 
    GPAT. 
    Now let’s look at an exampl e using the XPAT command. 
    The XPAT command uses the format 
    XPAT  pattern-number ; bit map; 
    Note that the  pattern-number  parameter must be a value from 100 to 105 and followed 
    by a  semicolon , not a comma. 
    The following example dem onstrates the XPAT command in a PRESCRIBE command 
    sequence. 
    12864 32 16 8 4 2 1
    16
    40
    68
    130
    65
    34
    20
    8
    =
    =
    =
    = = = =
    =
    Downloaded From ManualsPrinter.com Manuals 
    						
    							2-13
    !R! RES;XPAT 100;
    @X0@ | 0Af0CC0FA8L@
    						
    							Chapter 2 Graphics Tutorial
    2-14
     
    If the character resulting for section x of any row is @ (indicating  that all bits in that sec-
    tion are white), then that charact er may be omitted. If sections x and  y are both @, then 
    both characters may be omitted. Howe ver, if the result for section y is @ and that for sec-
    tion  x is a character other than @, then no char acters may be omitted. In terms of the pro-
    gram example above, what this m eans is that the bit map string,
    @X0@ | 0Af0CC0FA8L@
    						
    							2-15
    Figure 2. 12.  PIE Example   
    The PIE command uses the format
    PIE radius , starting angle,  size of slice, ... ; 
    In the example above, the  radius is 2 centimeters (since we set the unit to centimeters 
    with the UNIT command), and the starting angle  is 0 degrees. Four pie slices are speci-
    fied, with sizes of 10, 20, 30, and 40. 
    The printing system automatically converts the slice sizes to angles totalling 360 
    degrees. Then it draws the first slice with  a cut at the angle specified by the second 
    parameter (0 degrees in our example, or stra ight up). The remaining slices are drawn in 
    sequence clockwise around the circle. The line  thickness used for drawing the circle and 
    the lines between slices are designated  by the SPD (Set Pen Diameter) command. 
    Any number of pie slice sizes can be specified , provided that the total length of the com-
    mand does not exceed 255 charact ers, and that the sum of the pie slices does not exceed 
    9999. All numbers specified for slice sizes must be non-negative integers. 
    The PIE command does no t fill in the slices with any fi ll pattern. The PAT command can 
    be used to create shaded areas. The previous example is expanded to  fill in the slices. 
    !R! RES; UNIT C; SPD .1; MZP 10, 10;
    PAT 19; ARC 0, 2, 0, 36;
    PAT 41; ARC 0, 2, 36, 108;
    PAT 43; ARC 0, 2, 108, 216;
    PAT 48; ARC 0, 2, 216, 360;
    PIE 2, 0, 10, 20, 30, 40;
    PAGE;
    EXIT; 
    Downloaded From ManualsPrinter.com Manuals 
    						
    							Chapter 2 Graphics Tutorial
    2-16
    Figure 2. 13.  Pattern Filled PIE   
    This program first draws four filled arcs, each using a different fill pattern, then prints 
    the pie chart over the arcs. Each arc has an inne r radius of zero, an outer radius of 2 (the 
    same as the pie chart), and a  starting angle and ending angle  that correspond to the rela-
    tive size of the pie slices. Since the total si ze of the pie slices in the example is 100 
    (10+20+30+40), the angular extent of each arc is equal to 360 x  size of slice /100. For 
    example, the angular extent  of the first arc is 360 x 
    10 /100 = 36 degrees. The starting 
    angle of each arc equals the starting angle of  the pie chart (0 degrees), plus the angular 
    extent of all the preceding arcs. The ending an gle equals the starting angle plus the angu-
    lar extent of the arc. 
    Path Mode Graphics
    With path mode graphics, images are constructed by defining lines and curves as paths , 
    then rendering them as images by stroking  along the paths or filling the area enclosed by 
    them. PRESCRIBE provides a variety of path  construction operators and painting opera-
    tors for stroking or filling paths. 
    Path 
    In PRESCRIBE, a path is a set of straight or  curved line segments, either connected or 
    disconnected, that describes the shape and position of one or more objects or regions. 
    Paths can be used to draw lines and curves and to specify boundaries of filled areas. 
    A path is  stroked by drawing a line of arbitrary width along it. The line may be solid 
    black, all white, or any intermediate shade of  gray. It may also be a dashed line of any 
    pattern of segment lengths. 
    A path is  filled by painting the entire area that it en closes with a gray scale pattern, rang-
    ing from black to white, or wi th one of the printing system’s  predefined patterns. In order 
    to be filled, a path must be closed; that is, it must return to its starting point. 
    A path is constructed by means of one or more  path construction operators. The path 
    construction operators modify the current path, usually by appending to it. However, a 
    path in itself does not produce any image on  the page. Once a path has been constructed, 
    it can be used to control the application of one of the painting operators of PRESCRIBE, 
    defining the boundary of the area in which images can be printed. 
    Downloaded From ManualsPrinter.com Manuals 
    						
    							Path Mode Graphics
    2-17
    There are no restrictions on the shape of a path. A single path may include multiple 
    closed  subpaths, representing several areas, and a pa th may intersect itself in an arbitrary 
    manner. 
    The order of the segments that define a path is significant. A pair of line segments is said 
    to connect only if they are defined consecuti vely, with the second segment starting where 
    the first one ends. Non-consecutive segments that meet or intersect fortuitously are not 
    connected. 
    A subpath is a sequence of connected segments. A path is made up of one or more sub-
    paths. Subpaths may be either open or closed. 
    Path construction begins with a NEWP (N EW Path) command. Path construction ends 
    with the CLSP (CLoSe Path) command or with any paint operator that paints the region 
    enclosed by the path or  draws a line along it (s uch as STRoKe or FILL). 
    Downloaded From ManualsPrinter.com Manuals 
    						
    							Chapter 2 Graphics Tutorial
    2-18
    Drawing Lines 
    The following example shows how to draw a line in the path mode. 
    !R! RES; NEWP;
    PMZP 1, 1;
    PDZP 2, 3;
    STRK;
    PAGE;
    EXIT; 
    Figure 2. 14.  Drawing Lines in Path Mode   
    Line 1 of the program switches the printing  system to the PRESCRIBE mode and resets 
    printing system parameters, including the unit (to inches), line width (to 3 dots), and var-
    ious other aspects of  the graphics state. 
    Path construction begins with the NEWP co mmand on line 2. This command empties the 
    current path (if any), making it possible to start a new one. In doing so, it makes the posi-
    tion of the curs or undefined. 
    The PMZP (Path, Move to Zero-relative Po sition) command on line 3 moves the cursor 
    to a position one inch from the top and left  edge limits of the paper. The coordinates 
    specified may be positive or negative. 
    On line 4, the PDZP (Path, Dr aw to Zero-relative Position) draws a line from the current 
    cursor position to the position 2 inches from th e left edge limit and 3 inches from the top 
    edge limit. The cursor remains at this  position after the line is drawn. 
    On line 5, the STRK command strokes the path onto the page. 
    After stroking the current pa th, the STRK command clears th e path in the same manner 
    as NEWP (start NEW Path). 
    Finally, PAGE prints out the page, allowing us to look at the result of our work and can-
    celling all changes made during the course  of the program, then EXIT ends the PRE-
    SCRIBE mode. 
    (1, 1)
    (2, 3)
    Downloaded From ManualsPrinter.com Manuals 
    						
    All Kyocera manuals Comments (1)

    Related Manuals for Kyocera FS 1028DP User Manual