0

Have one tif image which contains QR code on the top right. Now I want to read only that corner of Image using java. I am trying with FileInputStream but it's not working.

Is any one knows how to read specific area of Image using java?

Navnath
  • 1,064
  • 4
  • 18
  • 34
  • The Tif file format is quite complex so you will need to use a library which understands the format. – greg-449 Sep 25 '13 at 16:55

1 Answers1

0

Reading a specific portion from an image is basically more complex than just reading the entire image. Just read the image normally (JAI handles TIF: http://www.oracle.com/technetwork/java/current-142188.html) and copy the desired portion into a new image if needed.

Durandal
  • 19,919
  • 4
  • 36
  • 70
  • I just forget to mention that while reading tif Image, I am converting that image in PNG and after that I am reading that Image. It's working fine when I reading full Image. But I want to read only part of image. – Navnath Sep 26 '13 at 07:56