This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Line appears in image after scaling Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Line appears in image after scaling" Watch "Line appears in image after scaling" New topic
Author

Line appears in image after scaling

Markus Svensson
Greenhorn

Joined: Mar 31, 2009
Posts: 4
Hi,

I'm having a problem with image scaling. When I use the following code to scale an image it ends up with a line either at the bottom or on the right side of the image.

The original image is here: http://tinyurl.com/yzv6r7h
The scaled image: http://tinyurl.com/yk6e8ga

Does anyone know why the line appears?

Thanks!
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19649
    
  18

Moving to our GUI forum.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Line appears in image after scaling
 
Similar Threads
Resize an image while maintaing its aspect ratio..
saving transformed images
Resizing Large JPG Problem
new image after rotate
Rotate an Image on server side