KYOCERA FS-C2026MFP+ Uživatelský manuál Strana 62

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 260
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 61
Chapter 2 Graphics Tutorial
2-40
For example, construction of a filled and outlined shape such as that shown below
requires that we draw the path and then fill it. However, filling the path also clears it,
making it unavailable for stroking.
Figure 2. 39. A Path both Stroked and Filled
By saving the graphics state prior to filling the path, it becomes possible to restore the
path after it has been filled, thereby allowing it to be stroked without reconstructing it.
The commands used for saving and restoring the graphics state are the SCG (Save Cur-
rent Graphics state) command and the RPG (Return to Previous Graphics state) com-
mand.
The following program demonstrates the commands for constructing a path that is both
filled and stroked.
!R! RES; UNIT C; NEWP;
PMZP 4, 2;
PARC 3, 3, 1, 90, 270;
PARC 5, 3, 1, 270, 90;
CLSP;
SCG;
STRK;
RPG;
GPAT .5;
FILL 1;
PAGE;
EXIT;
The result appears in the figure above.
Zobrazit stránku 61
1 2 ... 57 58 59 60 61 62 63 64 65 66 67 ... 259 260

Komentáře k této Příručce

Žádné komentáře