Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 265
  • Last Modified:

downsampling an image

hi, can anyone tell me how can i use java for downsampling of an image.
The image is drawn by mouse on the java canvas and i want to lower the
resolution of the image to a very low value say 10x10. Does java provides any
classes for down sampling.If so how can i use it.
0
ashmita
Asked:
ashmita
  • 2
1 Solution
 
TimYatesCommented:
Image.getScaledInstance( int width, int height, int hints ) ;
0
 
TimYatesCommented:
so;

Image scaledImage = yourImage.getScaledInstance( 10, 10, SCALE_AREA_AVERAGING ) ;
0
 
CleanupPingCommented:
ashmita:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
 
jimmackCommented:
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Accept TimYates' comment as answer.

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

jimmack
EE Cleanup Volunteer
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now