The Java 2D image structure is mind-boggling, and I don't claim I understand 
all the dragons hidden inside, but I am sure that there is no 
get-half-of-a-pixel method somewhere in the API. Not even in the darkest corner.

If I get you right. you need to do some image processing. You know the 
algorithm, but for whatever reason you don't want to get it done during 
rendering, but earlier.

It sounds like you want an AffineTransformOp. The AffineTransform for that 
AffineTransformOp should be a 3/2 scale, and the interpolation type set to 
bilinear. You would then, after some ado, use the AffineTransformOp to create a 
new BufferedImage 3/2 wider and 3/2 larger than your original, where the new 
pixels are bilinear interpolated. You could still have keep original image for 
other evaluation.

If the AffineTransformOp doesn't do what you want, consider implementing your 
own BufferedImageOp. While implementing the BufferedImageOp interface is really 
not necessary (you could place all the image handling code in methods in your 
own classes) it makes sense because it is a standard interface which can be 
used in a few places in the Java 2D image API.
[Message sent by forum member 'ewin' (ewin)]

http://forums.java.net/jive/thread.jspa?messageID=205054

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