Class RotateFilter

  • All Implemented Interfaces:
    java.io.Serializable, javax.servlet.Filter, javax.servlet.FilterConfig

    @Deprecated
    public class RotateFilter
    extends ImageFilter
    Deprecated.
    This Servlet is able to render a cropped part of an image.
    Parameters:
    cropX
    integer, the new left edge of the image.
    cropY
    integer, the new top of the image.
    cropWidth
    integer, the new width of the image.
    cropHeight
    integer, the new height of the image.

    Examples:
    JPEG: <IMG src="/scale/test.jpg?image=http://www.iconmedialab.com/images/random/home_image_12.jpg&width=500&uniform=true">
    PNG: <IMG src="/scale/test.png?cache=false&image=http://www.iconmedialab.com/images/random/home_image_12.jpg&width=50&units=PERCENT">

    Version:
    $Id: RotateFilter.java#1 $
    Author:
    Harald Kuhr, last modified by $Author: haku $
    See Also:
    Serialized Form
    • Field Detail

      • PARAM_ANGLE

        protected static final java.lang.String PARAM_ANGLE
        Deprecated.
        angle
        See Also:
        Constant Field Values
      • PARAM_ANGLE_UNITS

        protected static final java.lang.String PARAM_ANGLE_UNITS
        Deprecated.
        angleUnits (RADIANS|DEGREES)
        See Also:
        Constant Field Values
      • PARAM_CROP

        protected static final java.lang.String PARAM_CROP
        Deprecated.
        crop
        See Also:
        Constant Field Values
      • PARAM_BGCOLOR

        protected static final java.lang.String PARAM_BGCOLOR
        Deprecated.
        bgcolor
        See Also:
        Constant Field Values
    • Constructor Detail

      • RotateFilter

        public RotateFilter()
        Deprecated.
    • Method Detail

      • doFilter

        protected java.awt.image.RenderedImage doFilter​(java.awt.image.BufferedImage pImage,
                                                        javax.servlet.ServletRequest pRequest,
                                                        ImageServletResponse pResponse)
        Deprecated.
        Reads the image from the requested URL, rotates it, and returns it in the Servlet stream. See above for details on parameters.
        Specified by:
        doFilter in class ImageFilter
        Parameters:
        pImage - the image to filter
        pRequest - the servlet request
        pResponse - the servlet response
        Returns:
        the filtered image