Previous Document Next Document

Object Model Reference : Classes : C : CorelScript : Methods : CorelScript.CreateSymPolygon


CorelScript.CreateSymPolygon

Function CreateSymPolygon(Top As Long, Left As Long, Bottom As Long, Right As Long, Sides As Long, SubPaths As Long, Complexity As Long, Star As Boolean, StarComplexity As Long, MaxComplexity As Long) As Long

Description

Member of CorelScript

The CreateSymPolygon method creates a polygon or star.

Parameter
Description
Top
Specifies the y-coordinate of the upper-left corner of the bounding box of the shape, in tenths of a micron and relative to the center of the page
Left
Specifies the x-coordinate of the upper-left corner of the bounding box of the shape, in tenths of a micron and relative to the center of the page
Bottom
Specifies the y-coordinate of the lower-right corner of the bounding box of the shape, in tenths of a micron and relative to the center of the page
Right
Specifies the x-coordinate of the lower-right corner of the bounding box of the shape, in tenths of a micron and relative to the center of the page
Sides
Specifies the number of sides. Valid values range from 3 to 500.
Subpaths
Specifies the number of subpaths in a polygon. Valid values range depending on the number of sides on the polygon.
If both Subpaths and Complexity are set to 1, then the polygon becomes a simple polygon. If either of these values is greater than 1, then the polygon becomes a star.
Complexity
Specifies the complexity of a polygon. Valid values range depending on the number of sides on the polygon.
If both Subpaths and Complexity are set to 1, then the polygon becomes a simple polygon. If either of these values is greater than 1, then the polygon becomes a star. A simple star is created when there is one subpath and the complexity is set to 2.
Star
Specifies whether to enable the StarComplexity parameter. True (-1) enables the parameter, while False (0) ignores it.
This parameter must be True if you want to create a star-shaped polygon.
StarComplexity
Specifies the distance of the start node from the center of the shape. The closer this value is to the MaxComplexity value, the closer the start node is to the center of the shape; a value of 0 leaves the start node at the outer edge of the shape.
MaxComplexity
Specifies the maximum value of star complexity

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.