public BufferedImage createCompatibleDestImage(BufferedImage src, ColorModel dstCM) {
        if ( dstCM == null )
            dstCM = src.getColorModel();
        return new BufferedImage(dstCM, dstCM.createCompatibleWritableRaster(src.getWidth(), src.getHeight()), dstCM.isAlphaPremultiplied(), null);
    }
Return a mod b. This differs from the % operator with respect to negative numbers.
@param a the dividend
@param b the divisor
@return a mod b
tomighty-swing/src/main/java/com/jhlabs/image/BrushedMetalFilter.java