# Image Rendering Reference

## Navigation:

Index General Information Elements Utils Examples

## Rotation Example

This example shows the usage of the rotation attribute.

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

## Rotation Example (Template)

<xsl:stylesheet version="2.0" >
<xsl:template match="Record" >
<image height="300" width="400" >
<field height="80" rotation="-45" width="80" x="0" y="0" >
<label font-size="20" font-weight="bold" >
Aktion!
</label>
</field>
<field height="100" rotation="-90" width="100" x="150" y="0" >
<barcode type="ean13" >
5449000000996
</barcode>
</field>
<field height="80" rotation="180" width="200" x="0" y="100" >
<label font-size="16" font-weight="bold" >
Test Test Test Test Test
</label>
</field>
<field height="50" rotation="270" width="100" x="300" y="0" >
<label font-size="16" font-weight="bold" >
Test Test
</label>
</field>
<field height="70" rotation="-10" width="200" x="100" y="190" >
<img autoscale="true" src="../images/imagotag.png" >
</img>
</field>
</image>
</xsl:template>
</xsl:stylesheet>

## Generated Image