Beispiel #1
0
        public static IntegerMatrix CreateIntegerMatrix(this REngine engine, Raster raster)
        {
            if (engine == null)
            {
                throw new ArgumentNullException("engine");
            }
            if (!engine.IsRunning)
            {
                throw new InvalidOperationException();
            }
            if (raster == null)
            {
                throw new ArgumentNullException("raster");
            }

            var width = raster.Width;
            var height = raster.Height;
            var matrix = new IntegerMatrix(engine, height, width);
            for (var x = 0; x < width; x++)
            {
                for (var y = 0; y < height; y++)
                {
                    matrix[x, y] = ToInteger(raster[x, y]);
                }
            }

            return matrix;
        }
 public void DrawRaster(Raster raster, Rectangle destination, double rotation, bool interpolated, GraphicsContext context,
     DeviceDescription description)
 {
     throw new NotImplementedException();
 }
Beispiel #3
0
 void IGraphicsDevice.DrawRaster(Raster raster, Rectangle destination, double rotation, bool interpolated, GraphicsContext context, DeviceDescription description)
 {
     throw new NotImplementedException();
 }