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)); }
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)); }