Inheritance: IDisposable
Exemplo n.º 1
0
        public DrawingTarget(DrawingState state, DrawingTransform transform, RenderTarget target, int width, int height)
        {
            _state = state;
            _transform = transform;

            _target = target;
            _target.AntialiasMode = AntialiasMode.PerPrimitive;

            Width = width;
            Height = height;

            _strokeBrush = new BrushCache(createBrush, () => _state.StrokeColor);
            _fillBrush = new BrushCache(createBrush, () => state.FillColor);
            _textBrush = new BrushCache(createBrush, () => state.TextColor);

            _transform.Changed += transformChanged;
        }
Exemplo n.º 2
0
        public DrawingTarget(DrawingState state, DrawingTransform transform, RenderTarget target, int width, int height)
        {
            _state     = state;
            _transform = transform;

            _target = target;
            _target.AntialiasMode = AntialiasMode.PerPrimitive;

            Width  = width;
            Height = height;

            _strokeBrush = new BrushCache(createBrush, () => _state.StrokeColor);
            _fillBrush   = new BrushCache(createBrush, () => state.FillColor);
            _textBrush   = new BrushCache(createBrush, () => state.TextColor);

            _transform.Changed += transformChanged;
        }