Release 1.0 - ...
<commands> element
Defines the registered image commands.
Example
XML |
Copy Code
|
<!-- registered image commands -->
<commands>
<!-- crops an image -->
<add type="Smartsite.ImageProcessor.Commands.CropCommand, Smartsite.ImageProcessor" enabled="true">
<parameters>
<!-- crop values in pixels -->
<add name="croptop" shortcut="crt"/>
<add name="cropleft" shortcut="crl"/>
<add name="cropright" shortcut="crr"/>
<add name="cropbottom" shortcut="crb"/>
<add name="cropheight" shortcut="crh"/>
<add name="cropwidth" shortcut="crw"/>
</parameters>
</add>
<!-- rotates an image -->
<add type="Smartsite.ImageProcessor.Commands.RotateCommand, Smartsite.ImageProcessor" enabled="true">
<parameters>
<!-- rotation angle as double -->
<add name="degrees" shortcut="r"/>
<!-- default: transparent -->
<add name="backcolor" shortcut="rbc"/>
</parameters>
</add>
</commands>
|
Attributes
None.
Parent element
Child elements
Element name |
Description |
<add> |
Adds an image command |
<remove> |
Removes a previously added image command. |
<clear> |
Removes all registered image commands. |