Пример #1
0
 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;
 }
Пример #2
0
            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);
            }
Пример #3
0
            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);
            }