protected byte[] replicatePixels(int srcx, int srcy, int srcw, int srch,
private byte[] replicatePixels(int srcx, int srcy, int srcw, int srch,
    protected byte[] replicatePixels(int srcx, int srcy, int srcw, int srch,                                    ColorModel model, byte[] srcPixels,                                    int srcOffset, int srcScansize,                                    double rx, double ry, int destScansize)    {	byte[] destPixels =	  new byte[(int) Math.ceil(srcw/rx) * (int) Math.ceil(srch/ry)];	int a, b;	for (int i = 0; i < destPixels.length; i++)	{	    a = (int) ((int) ( ((double) i) / destScansize) * ry) * srcScansize;	    b = (int) ((i % destScansize) * rx);	    if ((a + b + srcOffset) < srcPixels.length)		destPixels[i] = srcPixels[a + b + srcOffset];	}	return destPixels;    }