部分动漫展示 public virtual void Draw() { Graphics gr = canvas.AntiAliasGraphics; if (Visible) { if (canvas.OnScreen(UpdateRectangle)) { Trace.WriteLine("Shape:Draw " + ToString()); Draw(gr); } // Draw text before anchors and CP’s, otherwise centered text will overlay // on top of any center anchor/CP. if (!String.IsNullOrEmpty(Text)) { DrawText(gr); } if (ShowAnchors) { DrawAnchors(gr); } if (ShowConnectionPoints) { DrawConnectionPoints(gr); } if (IsBookmarked) { DrawBookmark(gr); } } else { Hide(); } } 点我下载项目源码