Hi Peter,

Does the image have transparent areas?  This sounds like bug 4475230:
http://developer.java.sun.com/developer/bugParade/bugs/4475230.html

This bug was fixed in the 1.4.1 release.  If you still see this behavior
using 1.4.1, send me a reproducible testcase/image and I'll take a look.

Thanks,
Chris

Peter Alvin wrote:
>   Hello!
>
> I load an image from disk, scale it, and write it back, and it always
> has a pink tint.
>
>         AffineTransform xform = AffineTransform.getScaleInstance(
> scalex, scaley );
>         AffineTransformOp op = new AffineTransformOp( xform,
> AffineTransformOp.TYPE_BILINEAR );
>         bf = op.filter(bf, null);
>
> This doesn't work either:
>
>         AffineTransform tx = new AffineTransform();
>         tx.scale(scalex, scaley);
>
>         AffineTransformOp op = new AffineTransformOp(tx,
> AffineTransformOp.TYPE_BILINEAR);
>         bf = op.filter(bf, null);
>
> What am I doing wrong?
>
> Pete
>
> =========================================================================
> 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".


--
Chris Campbell                     408-276-6429
[EMAIL PROTECTED]       x16429
Sun Microsystems, Java 2D          USCA22-212

===========================================================================
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