/** * Checks if the value of the XResolution tag matches * any of the values in the array passed to it. * * @param ifd The IFD being checked * @param values An array of values, any of which will * satisfy the test. */ protected boolean satisfiesXResolution (TiffIFD ifd, int [] values) { long xf = ifd.getNisoImageMetadata ().getXSamplingFrequency ().toLong (); for (int i = 0; i < values.length; i++) { if (xf == values[i]) { return true; } } return false; }
/** * Checks if the value of the XResolution tag matches * any of the values in the array passed to it. * * @param ifd The IFD being checked * @param values An array of values, any of which will * satisfy the test. */ protected boolean satisfiesYResolution (TiffIFD ifd, int [] values) { long yf = ifd.getNisoImageMetadata ().getYSamplingFrequency ().toLong (); for (int i = 0; i < values.length; i++) { if (yf == values[i]) { return true; } } return false; }