Click here to Skip to main content
15,887,027 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I'm doing my project as image editor by using JAVA.

Here I've a doubt about how to get the image pixel, and want to increase the pixel rate, for increasing the quality of an image.

Please reply and help me...

Thanks

Boopathiraj.C
Posted
Updated 2-Jun-11 21:45pm
v2
Comments
Dalek Dave 3-Jun-11 3:45am    
Edited for Grammar, Spelling and Readability.

Ya "increasing the pixel rate " means.. for example we ve low resolution image.. while zooming surely it wil loose the quality.. so need to calculate the pixels... thats y i asked.. and thanx for ur quick respone...

Thanks

Boopathiraj.C
 
Share this answer
 
You may use the PixelGrabber[^] class.
Example of usage here[^].

BTW what do you mean with :"I want to increase the pixel rate"?

[Update]
If you need to scale the image without lossing much quality, why don't you use the getScaledInstance method of the Image class (with SCALE_SMOOTH)?
[/Update]
 
Share this answer
 
v3
If by "Increasing the Pixel Rate" you mean increase the resolution of the image, you cant.
The highest resolution available is the original image taken.
(Eg. 1.2 megapixel image from a phone)

An image's resolution can be reduced, but once reduced, it cannot be increased again.
 
Share this answer
 
ya.. i can understand wat u saying Mr.DAVE... my question lik that only... once it reduced why it cannot be increased..?? surely it ve solution.. so im asking the idea.. if possible means.. how to increase the resolution..? as a programmer we ve to do code to increase the resolution of the picture..

So anybody help me..

And thanks Mr.DAVE.. Keep in touch....
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900