src/main/java/org/apache/xmlgraphics/image/rendered/AbstractRed.java [198:233]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
            if (bounds == null) {
                bounds = src.getBounds();
            }
            if (cm     == null) {
                cm     = src.getColorModel();
            }
            if (sm     == null) {
                sm     = src.getSampleModel();
            }
        }

        this.bounds       = bounds;
        this.tileGridXOff = tileGridXOff;
        this.tileGridYOff = tileGridYOff;

        this.props        = new HashMap();
        if (props != null) {
            this.props.putAll(props);
        }

        if (cm == null) {
            cm = new ComponentColorModel(
                ColorSpace.getInstance(ColorSpace.CS_GRAY),
                 new int [] { 8 }, false, false, Transparency.OPAQUE,
                 DataBuffer.TYPE_BYTE);
        }

        this.cm = cm;

        if (sm == null) {
            sm = cm.createCompatibleSampleModel(bounds.width, bounds.height);
        }
        this.sm = sm;

        // Recompute tileWidth/Height, minTileX/Y, numX/YTiles.
        updateTileGridInfo();
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



src/main/java/org/apache/xmlgraphics/image/rendered/AbstractRed.java [323:358]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                if (bounds == null) {
                    bounds = src.getBounds();
                }
                if (cm     == null) {
                    cm     = src.getColorModel();
                }
                if (sm     == null) {
                    sm     = src.getSampleModel();
                }
            }
        }

        this.bounds       = bounds;
        this.tileGridXOff = tileGridXOff;
        this.tileGridYOff = tileGridYOff;
        this.props        = new HashMap();
        if (props != null) {
            this.props.putAll(props);
        }

        if (cm == null) {
            cm = new ComponentColorModel(
                ColorSpace.getInstance(ColorSpace.CS_GRAY),
                 new int [] { 8 }, false, false, Transparency.OPAQUE,
                 DataBuffer.TYPE_BYTE);
        }

        this.cm = cm;

        if (sm == null) {
            sm = cm.createCompatibleSampleModel(bounds.width, bounds.height);
        }
        this.sm = sm;

        // Recompute tileWidth/Height, minTileX/Y, numX/YTiles.
        updateTileGridInfo();
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



