Guys and gals,

I am a lost server programmer, who rarely ventures into the GUI domain, but I
am now working on a little server component that can apply a stack of raster
operations on an image. This is for the Apache Cocoon project, and not per se
commercial, although we ourselves use it commercially.

So, I read the image inputstream, and creates a WriteableRaster, which is
passed through a stack of operations before being serialized back to an
outputstream (typically a http request).

Now, all this is fine and dandy, except I can not work out how to avoid
clipping in the negative region. It seems that any AffineTransform clips any
pixels ending up on negative coordinates.

Does anyone has any links to more info what to do about this?

I.e. what goes into the method below?

public class RotationOperation
    implements ImageOperation
{
    public WritableRaster transform( WritableRaster input )
    {
        // ??
    }
}


Thanks for any help on this.

Cheers
Niclas
--
   +------//-------------------+
  / http://www.bali.ac        /
 / http://niclas.hedhman.org /
+------//-------------------+

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to