dcsimg
JAI, Interpolation and a black border
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   John_Smith
Posted On:   Tuesday, March 27, 2001 06:10 AM

Maybe this is a little bit off-topic, but I didn't find a JAI forum. My problem: I use the JAI to read TIFF, convert them to JPEG / PNG and scale them to a given maxWidth / maxHeight. If the images are rendered using NeirestNeighbour interpolation, everything seems ok, but the quality is not as needed. When I switch to Bilinear/Bicubic Interpolation, the quality is fine, but I get a black border around the image. I understand that I can somehow use RenderingHints to set the BorderExtender to reflect missing pixels (that are needed by bicubic/bilinear interpolation) from the inside picture, the big question is: HOW ? The according key: HINT_BORDER_EXTENDER The V   More>>

Maybe this is a little bit off-topic, but I didn't find a JAI
forum.

My problem: I use the JAI to read TIFF, convert them to JPEG /
PNG and scale them to a given maxWidth / maxHeight.
If the images are rendered using NeirestNeighbour interpolation,
everything seems ok, but the quality is not as needed. When I
switch to Bilinear/Bicubic Interpolation, the quality is fine,
but I get a black border around the image. I understand that I
can somehow use RenderingHints to set the BorderExtender to reflect missing pixels
(that are needed by bicubic/bilinear interpolation) from the
inside picture, the big question is: HOW ?

The according key: HINT_BORDER_EXTENDER
The Value: BorderExtenderReflect

   <<Less
About | Sitemap | Contact