예제 #1
0
        public void Render(IntPtr hdc, int x, int y, int cx, int cy, int xSrc, int ySrc, int cxSrc, int cySrc, IntPtr prcWBounds)
        {
            // See http://blogs.microsoft.co.il/blogs/sasha/archive/2008/07/28/finalizer-vs-application-a-race-condition-from-hell.aspx
            IPicture p = Picture;

            p.Render(hdc, x, y, cx, cy, xSrc, ySrc, cxSrc, cySrc, prcWBounds);
            GC.KeepAlive(p);
        }