The widget provides client side methods which can be called with Javascript.
Following methods can be used:
  • rotateLeft(degree) - Rotates the image to the left direction.
  • rotateRight(degree) - Rotates the image to the right direction.
  • resize(width,height) - Resizes the image to the given width and height.
  • scale(scaleFactor) - Scales the image with the given factor.
  • restoreDefaults() - Restores the default image.
${showcase:getFileContent('/sections/imageRotateAndResize/example-basicUsage.xhtml')} ${showcase:getFileContent('/org/primefaces/extensions/showcase/controller/ImageController.java')}