/** * Checks if the value of the PlanarConfiguration 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 satisfiesPlanarConfiguration (TiffIFD ifd, int [] values) { int spp = ifd.getNisoImageMetadata ().getPlanarConfiguration (); for (int i = 0; i < values.length; i++) { if (spp == values[i]) { return true; } } return false; }
val.add (new DefaultMutableTreeNode ("PlanarConfiguration: " + integerRepresentation (n, NisoImageMetadata.PLANAR_CONFIGURATION ),
useFBuf = true; if ((n = niso.getPlanarConfiguration ()) != NisoImageMetadata.NULL) { fBuf.append (margn4 + element ("mix:PlanarConfiguration", Integer.toString (n)) + EOL);
if ((n = niso.getPlanarConfiguration ()) != NisoImageMetadata.NULL) { _writer.println (margn2 + "PlanarConfiguration: " + addIntegerValue (n, NisoImageMetadata.PLANAR_CONFIGURATION,
int planarConfiguration = niso.getPlanarConfiguration(); int samplesPerPixel = niso.getSamplesPerPixel();
int config = niso.getPlanarConfiguration (); if (config != 1 && config != 2) { return false;