public Int(IntegerInterleavedRaster srcRas, ColorModel cm, AffineTransform xform, int maxw, bool filter) : base(cm, xform, srcRas.Width, srcRas.Height, maxw) { this.SrcRas = srcRas; this.InData = srcRas.DataStorage; this.InSpan = srcRas.ScanlineStride; this.InOff = srcRas.getDataOffset(0); this.Filter = filter; }
public override WritableRaster MakeRaster(int w, int h) { WritableRaster ras = MakeRaster(ColorModel_Renamed, SrcRas, w, h); IntegerInterleavedRaster iiRas = (IntegerInterleavedRaster)ras; OutData = iiRas.DataStorage; OutSpan = iiRas.ScanlineStride; OutOff = iiRas.getDataOffset(0); return(ras); }
public override WritableRaster MakeRaster(int w, int h) { // Note that we do not pass srcRas to makeRaster since it // is a Byte Raster and this colorModel needs an Int Raster WritableRaster ras = MakeRaster(ColorModel_Renamed, null, w, h); IntegerInterleavedRaster iiRas = (IntegerInterleavedRaster)ras; OutData = iiRas.DataStorage; OutSpan = iiRas.ScanlineStride; OutOff = iiRas.getDataOffset(0); return(ras); }