(long loc)
| 350 | } |
| 351 | |
| 352 | double getRational(long loc) throws IOException { |
| 353 | long saveLoc = in.getLongFilePointer(); |
| 354 | in.seek(loc); |
| 355 | double numerator = getUnsignedInt(); |
| 356 | double denominator = getUnsignedInt(); |
| 357 | in.seek(saveLoc); |
| 358 | if (denominator!=0.0) |
| 359 | return numerator/denominator; |
| 360 | else |
| 361 | return 0.0; |
| 362 | } |
| 363 | |
| 364 | FileInfo OpenIFD() throws IOException { |
| 365 | // Get Image File Directory data |
no test coverage detected