0 Replies Latest reply on Jul 22, 2009 1:37 PM by Ben Utzer

    s:transformImageSize scaleToFit

    Ben Utzer Newbie

      Hi all,

      I would like to alter the <s:transformImageSize> component so that if the width, height and the maintainRatio property were set the scaleToFit method of org.jboss.seam.ui.graphicImage.Image would get called.

      How would I best go about implementing this?

      I think building my custom seam version is not a good idea. Also the Seam documentation mentions:

      It's easy to create your own transform - create a UIComponent which implements
      org.jboss.seam.ui.graphicImage.ImageTransform. Inside the applyTransform()method
      use image.getBufferedImage() to get the original image and image.setBufferedImage() to
      set your transformed image. Transforms are applied in the order specified in the view.

      which I did not understand.

      I would appreciate any hints on this.

      Best regards,