Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Blury Image

Status
Not open for further replies.

eramgarden

Programmer
Aug 27, 2003
279
US
I have inherited a Java application, it creates JPG files but the images are blury..Not sure where to start debugging it..why is it blury and what causes it.

This is part of her code: Any ideas would be great..


RenderedImageAdapter ria = new RenderedImageAdapter(renImage);
BufferedImage bi = ria.getAsBufferedImage();

thanks in advance.
 
RenderedImageAdapter is not a class i'm familiar with, nor is it a class i see listed in the Java SE 1.4.2 javadoc. Are you using Java SE? Is that a custom class? If so, I'd need to know more information about what that class is, what it's supposed to do, where this code is getting used... please post more information so that i can understand what the problem is. can you upload a blurry jpg so that i can see what you mean? What is the input to the program? <p>Liam Morley<br><A HREF="mailto:"></A><br>&quot;light the deep, and bring silence to the world.<br>light the world, and bring depth to the silence.&quot;
 
ok, i'm back..been going thru the code understanding what's going on..

1.The input is a &quot;tif&quot; file and it converts it to a jpg file.

2. This is the class it uses:

3. It reads the file with this line:
imageSRC = JAIImageReader2.readImage(fileName);
renImage=imageSRC

4. Then down in the code, it uses these 2 lines to convert the image:

RenderedImageAdapter ria = new RenderedImageAdapter(renImage);
BufferedImage bi = ria.getAsBufferedImage()

5. I dont know how to upload a file/image to the site!

any ideas on what to do??
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top