Description
Rounds corners of a shape, either open, as an angled rule or closed, as a box.
Syntax
errorcode = Page.ObjRoundShape (dist, res) |
dist
radius in millipoints. Positive value greater than 0.
res
resolution, as number of steps. Integer, greater than 0
Remarks
The corners are rounded by a virtual circle with a radius equal to "dist" millipoints (>0) by a resolution steps defined by "res" (>0). For example:
Page.ObjRoundShape (20000,4)
The change is permanent because the object shape is replaced by the rounded one.
It is also possible to "Simplify" a shape, using 0 as resolution. The resulting shape will contains only points at least "dist" millipoints from previuos one. Example:
Page.ObjRoundShape (10000,0). Use this function to remove "spikes" if they appear on complicated shapes.
Return value
Returns error code.
Context
Page designer