There are different types of graphics items in Character Generator. For example, you can use rectangles, stars, polygons in your overlay.
Default XML description of the graphic item looks like:
<graphics type='rect' round-corners='0.3' color-angle='45' sides='0' star-inset='0.' outline='3.' outline-color='White' color='Red(220)-Yellow(100)-Green(180)'/>
And it looks like a rectangle with rounded corners:

To add such item with a code you can call:
string graphicsItemId = "myGraphics"; string graphicsConfiguration = @"<graphics type='rect' round-corners='0.3' color-angle='45' sides='0' star-inset='0.' outline='3.' outline-color='White' color='Red(220)-Yellow(100)-Green(180)'/>"; double relativeX = 0.05; double relativeY = 0.05; int isRelative = 1; int isShow = 1; myCharGen.AddNewItem(graphicsConfiguration, relativeX, relativeY, isRelative, isShow, ref graphicsItemId);
Common properties of graphic items
| Property | Description | Values | Example |
|---|---|---|---|
| color | color of filling | color according to Color settings | color='Blue(255)'![]() |
| color-angle | gradient angle of filling | angle in degrees | color-angle='90'![]() |
| outline | outline width | width in pixels | outline='8'![]() |
| outline-color | color of outline | color according to Color settings | outline-color='Green'![]() |
| type | type of graphics | described below | type='circle'![]() |
Graphics types
| Type | Default view | Additional parameters |
|---|---|---|
| rect | ![]() |
round-corners to specify corner radius. For example, round-corners='0.5' :![]() |
| block-1 | ![]() |
None |
| block-2 | ![]() |
None |
| block-3 | ![]() |
None |
| block-4 | ![]() |
None |
| block-5 | ![]() |
None |
| block-6 | ![]() |
None |
| circle | ![]() |
None |
| ellipse | ![]() |
None |
| triangle | ![]() |
None |
| polygon | ![]() |
sides to specify number of sides. For example, sides='8' :![]() |
| star | ![]() |
sides to specify number of rays. For example, sides='8' :![]() star-inset to specify a depth of rays. For example, start-inset='0.4' : ![]() |
There is no specific structure to manage graphics items. So the only way to configure such items from source code is to set XML properties.
Still have questions?
Tell us what didn’t work or what you’d like clarified.



















