Beispiel #1
0
        override protected void DrawLayer(Rectangle clipRectangle)
        {
            try
            {
                SwapDrawBuffer();

                //!!!Draw all objects after FillTransparent (*ClipRectangle)
                FillTransparent();

                var localScreenView = (ScreenRectangle)ScreenView.Clone();

                RedrawCables(localScreenView);
                RedrawVertexes(localScreenView);
            }
            finally
            {
                SwapDrawBuffer();
            }
            FireInvalidateLayer(clipRectangle);
        }
Beispiel #2
0
        override protected void DrawLayer(Rectangle clipRectangle)
        {
            try
            {
                SwapDrawBuffer();

                Rectangle       localBlockView;
                ScreenRectangle localScreenView;
                do
                {
                    DropWorkerThreadEvents(WorkerEventType.RedrawLayer);

                    localBlockView  = (Rectangle)_blockView.Clone();
                    localScreenView = (ScreenRectangle)ScreenView.Clone();
                }while (DrawImages(localBlockView, localScreenView) == false);
            }
            finally
            {
                SwapDrawBuffer();
            }
            FireInvalidateLayer(clipRectangle);
        }