# Image Rendering Reference

## Navigation:

Index General Information Elements Utils Examples

# The <polygon> Element

## Description:

Defines a polygon to be drawn onto the image. The polygon will be drawn behind the field elements.

### Multiple Occurrences allowed: true

## Attributes

Name | Description | Inheritated | Possible Values | Default Value | Examples
--- | --- | --- | --- | --- | ---
class | A identifier of a CSS class. This identifier can be referenced via a CSS file. The same class identifier is meant to be used in multiple tags | false | String | No default value | css1
id | A identifier of the tag. This identifier can be referenced via a CSS file. This identifier has to be unique | false | String | No default value | css1
points | A whitespace separated list of coordinates used to draw a polygon | false | A whitespace separated list of coordinates. Coordinates are separated by colon. e.g. 10,12 221,152 | No default value | drawing2
color | The color of the element or the contained text | true | black | white | transparent | semi-colon separated RGBA string with values between 0 and 255 | black | -
border | Specifies the thickness of the border around the element. A value of 0 means no border | false | An non-negative integer value (>0) | 0 | drawing1
border-color | Specifies the color of the used border | false | black | white | transparent | semi-colon separated RGBA string with values between 0 and 255 | black | -
border-style | Sets the line style of the border | false | dotted | dashed | solid | solid | -
fill | Specifies whether the element should be filled with the specified color or net | false | true|false | true | -

## Child Elements

No child elements

## Examples

- Drawing Example
- Advanced Drawing Example