WARNING: This server provides a static reference view of the NetKernel documentation. Links to dynamic content do not work. For the best experience we recommend you install NetKernel and view the documentation in the live system .

Endpoint
Name:util.image.ImageRotate
Description:
Id:util.image.ImageRotate
Category:accessor
Identifier Syntax

util.image.ImageRotate is an accessor using Active URI syntax with the following base identifiers:

Base
active:imageRotate

and the following arguments: (for more details on argument passing details see here)

ArgumentRulesTypingDescription
operand
Mandatory
Representation (java.lang.Object)input ImageAspect
operator
Mandatory
Representation (java.lang.Object)declarative transform
Request Verbs

The following verb is supported:

Verb
SOURCE
Response

The following response representations can be returned for SOURCE requests:

SOURCE Representations
ImageAspect

This accessor throws no documented exceptions.

Import Requirements

To use util.image.ImageRotate accessor you must import the module urn:org:netkernel:util:image:

<import>
  <uri>urn:org:netkernel:util:image</uri>
</import>

Rotates an image with the format specified by the operator.

Operator

The operator declaratively specifies the crop dimensions. It must be transreptable to a String HDS tree. Its syntax in XML format is:

<transform>
  <angle>90</angle>
</transform>

Example Usage

Here is an example of use as a declarative request..

<request>
  <identifier>active:imageRotate</identifier>
  <argument name="operand">res:/test/poweredby.png</argument>
  <argument name="operator">
    <literal type="xml">
      <transform>
        <angle>320</angle>
      </transform>
    </literal>
  </argument>
</request>