List of usage examples for java.awt.image ComponentSampleModel getBankIndices
public final int[] getBankIndices()
From source file:org.geoserver.jai.ConcurrentTileFactory.java
private static long getNumBanksCSM(ComponentSampleModel csm) { int[] bankIndices = csm.getBankIndices(); int maxIndex = bankIndices[0]; for (int i = 1; i < bankIndices.length; i++) { int bankIndex = bankIndices[i]; if (bankIndex > maxIndex) { maxIndex = bankIndex;//w ww .j a va 2s.co m } } return maxIndex + 1; }