background image
Original Author Paul Laughton, 2011
Page 185
De Re BASIC!
Examples:
Original
Clip 1
Clip 2
Clip 2 applied to Clip 1 with RO parameter on Clip 2
0 = Intersect
1 = Difference
2 = Replace
3 = Reverse Difference
4 = Union
5 = XOR
Gr.clip is a display list object. It can be modified with Gr.modify. The modify parameters are "left",
"top", "right", "bottom", and "RO".
The Gr.show and Gr.hide commands can be used with the Gr.clip object.
Gr.newDL <dl_array[{<start>,<length>}]>
Replaces the existing display list with a new display list read from a numeric array (dl_array[]) or array
segment (dl_array[start,length]) of object numbers. Zero values in the array will be treated as null
objects in the display list. Null objects will not be drawn nor will they cause run-time errors.
See the Display List subtopic in this chapter for a complete explanation.
See the Sample Program file, f24_newdl, for a working example of this command.
Gr.getDL <dl_array[]> {, <keep_all_objects_lexp> }
Writes the current Display List into the numeric array <dl_array[]>. The array is specified without an
index. If the array exists, it is overwritten. Otherwise a new array is created. The result is always a one-
dimensional array. If the Display List is empty, the array will have one entry that does not display
anything.