public PositiveInteger getChannelSamplesPerPixel(int imageIndex, int channelIndex) { for (Iterator iter = delegates.iterator(); iter.hasNext();) { Object o = iter.next(); if (o instanceof MetadataRetrieve) { MetadataRetrieve retrieve = (MetadataRetrieve) o; PositiveInteger result = retrieve.getChannelSamplesPerPixel(imageIndex, channelIndex); if (result != null) return result; } } return null; }
public PositiveInteger getChannelSamplesPerPixel(int imageIndex, int channelIndex) { for (Iterator iter = delegates.iterator(); iter.hasNext();) { Object o = iter.next(); if (o instanceof MetadataRetrieve) { MetadataRetrieve retrieve = (MetadataRetrieve) o; PositiveInteger result = retrieve.getChannelSamplesPerPixel(imageIndex, channelIndex); if (result != null) return result; } } return null; }
PositiveInteger samplesPerPixel = src.getChannelSamplesPerPixel(srcImage, srcChannel); dest.setChannelSamplesPerPixel(samplesPerPixel, destImage, destChannel);