Download Manual for the UPT programming tool
Transcript
Doc.-Nr. 85110 Programming tool for „User Programmable Terminal“ (UPT) 8.6.4 The FRAME-command (fr) This graphic command is used to display a rectangular frame on the screen. The interior of the frame will not be affected by this command (it remains unchanged). Syntax: fr( <x1>, <y1>, <x2>, <y2> ) where x1 = left border y1 = top x2 = right border y2 = bottom 8.6.5 The FILL RECTANGLE-command (fi) This graphic command is used to fill a rectangular shape on the screen. Syntax: fi( <x1>, <y1>, <x2>, <y2> [ , <pattern0>, <pattern1> ] ) where x1 = left border y1 = top x2 = right border y2 = bottom pattern0, pattern1 = optional filling pattern, default=0xFF=solid. All „old“ contents of the rectangular area will be overwritten by this command, unless you use a draw mode that does not write both display „pages“ (=blink phases). The optional filling pattern allows drawing rectangles with different shades. Both patterns are 8Bit-Masks, where a „1“-Bit will be „set“, a „0“-Bit will be reset. <Pattern0> will be used to fill all even graphic lines, <Pattern1> will be used to fill all odd graphic lines. Some examples of useful filling patterns are: fi(10,10,30,20, 0xFF, 0xFF) will draw a „solid „black“ rectangle fi(10,22,30,30, 0xFF, 0x00) will draw a rectangle that consists of horizontal lines fi(10,32,30,40, 0x55, 0x55) will draw a rectangle that consists of thin vertical lines fi(10,42,30,50, 0x55, 0xAA) will draw a „50 percent gray shaded“ rectangle If you omit the filling patterns, the interpreter assumes that you want to draw a solid rectangle (the used filling pattern will be „0xFF, 0xFF“ then). © MKT / Doc.-Nr. 85110 Version 1.6 Page 57 / 69