コード例 #1
0
        public DXElement()
        {
            base.SnapsToDevicePixels = true;

            renderTimer = new Stopwatch();
            surface     = new DXImageSource();
            surface.IsFrontBufferAvailableChanged += delegate
            {
                UpdateReallyLoopRendering();
                if (!IsReallyLoopRendering && surface.IsFrontBufferAvailable)
                {
                    Render();
                }
            };
            IsVisibleChanged += delegate { UpdateReallyLoopRendering(); };
        }
コード例 #2
0
 public abstract void SetBackBuffer(DXImageSource dximage);