Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

How do i get the resolution (dpi) of an image?

Posted on 2003-11-11
6
Medium Priority
?
471 Views
Last Modified: 2012-06-21
I am using JAI for imagemanipulation.
I only want to get the (information of the) resolution of scanned pictures in TIFF and JPEG format with using java 1.3.1_02 and  JavaAdvancedImaging1.1.2.  
Example: me.tif = DIN A6 and scanned with 200x200dpi = shown in doublesize in java...
               or me.jpg = original 21x21 cm   scanned with 300x300 dpi = displayed in 63x63cm in java...
I don't know the dpi of the pics so i cannot display it in original size on my monitor...

Please help me,
thanks a lot flo

0
Comment
Question by:daFlo
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
6 Comments
 
LVL 35

Expert Comment

by:TimYates
ID: 9722180
0
 
LVL 35

Expert Comment

by:TimYates
ID: 9722187
0
 

Author Comment

by:daFlo
ID: 9746467
i wrote my own classes to read out the resolution...
I get all data i wanted but it was a littel work to write it...
but it works great ;) if anybody needs help about it contact me ...
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
LVL 35

Accepted Solution

by:
TimYates earned 1560 total points
ID: 9746527
Cool :-)

Errr....could you post the source code here?

Then ask for this question to be PAQ'd in community support :-)

That way, other people can find the solution too :-)

Congrats!!

Tim
0
 

Author Comment

by:daFlo
ID: 9746588
i must code it better....
because of some differences in the ImageFileDirectory of TiffImages...
with an non tiff6.0format it didnt find the sdesired offssets ...
but the code follows! its made for java 1.3.1
and your tip with the second link was the kick-off where i saw: I couldnT get any info without writing own sources you get the points ;D because i cannot get it back from this thread ...

flo
0
 
LVL 35

Expert Comment

by:TimYates
ID: 9746628
> because i cannot get it back from this thread .

Eeek!  Thanks! :-)

For future reference, you can ask at:

http://www.experts-exchange.com/Community_Support/

for Q points to be reduced

Good luck with everything!

Tim
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
Suggested Courses

604 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question