# Image Rendering Reference

## Navigation:

Index General Information Elements Utils Examples

## Rounded Rectangle/Field Example

This exapmle shows the usage of rounded corners in rectangles and fields with text.

- Template: templates/example14.xsl
- Record: records/empty.xml

## Rounded Rectangle/Field Example (Template)

<xsl:stylesheet version="2.0" >
<xsl:template match="Record" >
<image height="800" width="480" >
<field border="8" corner-radius="25" height="200" rounded-corners="TOP_LEFT,BOTTOM_RIGHT" valign="center" width="300" x="50" y="50" >
<label align="center" font-size="40" >
Test Label
</label>
</field>
<field border="2" corner-radius="10" height="80" rounded-corners="TOP_RIGHT,TOP_LEFT,BOTTOM_RIGHT" width="200" x="10" y="300" >
<text align="center" font-size="20" >
Multiple lines inside a rounded field
</text>
</field>
<rect corner-radius="50" height="100" rounded-corners="TOP_RIGHT,TOP_LEFT,BOTTOM_RIGHT,BOTTOM_LEFT" width="250" x="20" y="400" >
</rect>
<rect border="5" corner-radius="70" fill="false" height="150" rounded-corners="TOP_RIGHT" width="300" x="100" y="600" >
</rect>
</image>
</xsl:template>
</xsl:stylesheet>

## Generated Image