Lines Matching defs:sm
2789 SampleModel sm = raster.getSampleModel();
2791 if (sm instanceof ComponentSampleModel) {
2792 if (sm.getNumBands() != getNumComponents()) {
2796 if (sm.getSampleSize(i) < nBits[i]) {
2832 SampleModel sm = createCompatibleSampleModel(w, h);
2833 DataBuffer db = sm.createDataBuffer();
2834 raster = Raster.createWritableRaster(sm, db, null);
2876 * @param sm The {@code SampleModel} to test for compatibility.
2884 public boolean isCompatibleSampleModel(SampleModel sm) {
2885 if (!(sm instanceof ComponentSampleModel)) {
2890 if (numComponents != sm.getNumBands()) {
2894 if (sm.getTransferType() != transferType) {