Esempio n. 1
0
 public Device(IBufferedBitmap bmp, ILineDrawingAlgorithm lineDrawing, IClippingAlgorithm clippingAlgorithm)
 {
     Bitmap = bmp;
     LineDrawingAlgorithm = lineDrawing;
     ClippingAlgorithm    = clippingAlgorithm;
     ClippingAlgorithm.SetBoundingRectangle(new Vector2(0, 0), new Vector2(Bitmap.PixelWidth, Bitmap.PixelHeight));
 }
Esempio n. 2
0
        public Device(BufferedBitmap bufferedBitmap)
        {
            this.bufferedBitmap = bufferedBitmap;

            lineDrawingAlgorithm = new LineDrawingAlgorithm();
            clippingAlgorithm    = new LineClippingAlgorithm();

            clippingAlgorithm.SetBoundingRectangle(
                new Vector2(0, 0), new Vector2(bufferedBitmap.PixelWidth, bufferedBitmap.PixelHeight));
        }