Hi,

I'm writing an applet to show slightly distorted images.  The applet it to apply
small corrective mapping to straighten out the image for better viewing.

The problem is that the corrections on a small image can be less than a pixel.  
It
would be real handy if I could do sub-pixel averaging to interpolate an average 
pixel
in between the four nearest neighbors.  Pretty typical bi-linear interpolation.

I can do this when I draw the image using RenderHints.  But I want to do it as I
access the source image.  I lose too much information doing the interpolation
at render time.

What would be insanely great is if I could do a getPixel() using doubles or 
floats as
the pixel address -- like getPixel(4.321, 5.749 ....

Now that would be something!

Am I being clear -- as mud?

Does any one have a pointer to documentation or code that does sub-pixel 
sampling from
either a Raster or DataBuffer in a BufferedImage?  It would be a useful thing
to review.  Maybe I could get a better idea how to proceed with out losing the 
utility
of BufferedImages.

Ken Warner

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