Dispose() public method

public Dispose ( ) : void
return void
Beispiel #1
0
        public static IDrawingTarget Create(IDrawingTarget target, Action disposer, DrawingState state, DrawingTransform transform)
        {
            var pixelAligner = new PixelAligningDrawingTarget(target, state, transform);

            return(new DrawingTargetSplitter
                   (
                       target.Backend,
                       state,
                       transform,
                       pixelAligner,
                       pixelAligner,
                       target,
                       target,
                       target, () =>
            {
                pixelAligner.Dispose();
                disposer();
            }
                   ));
        }
        public static IDrawingTarget Create(IDrawingTarget target, Action disposer, DrawingState state, DrawingTransform transform)
        {
            var pixelAligner = new PixelAligningDrawingTarget(target, state, transform);

            return new DrawingTargetSplitter
                (
                    target.Backend,
                    state,
                    transform,
                    pixelAligner,
                    pixelAligner,
                    target,
                    target,
                    target, () =>
                        {
                            pixelAligner.Dispose();
                            disposer();
                        }
                    );
        }