OpenPage treats graphic primitives (shapes, images and text) as operands in expressions. They are combined
using compositing operators to make new, more complex graphic objects. These can be further combined and
operated on, all using conventional expression syntax
The following example shows how the in operator can be used in the construction of a more complex graphic
element
rect(7.5, 7.5, 25, 15); box = draw(path()); |
|
 |
rect(7.5, 7.5, 25, 15); rect(0, 0, 40, 30); gc_opacity(1, 0); frame = draw(path()); |
 |
 |
pic = image("castaway.tiff"); |
 |
 |
pic = pic in (box over frame); |
 |
|