示例#1
0
        /// <summary>
        /// Draws overlay.
        /// </summary>
        public void Draw(IEditableFrame Editor, Func <Point, Point> Transform = null)
        {
            _mouseClickOverlay?.Draw(Editor, Transform);
            _scrollOverlay?.Draw(Editor, Transform);

            _keyOverlay?.Draw(Editor, Transform);
        }
示例#2
0
 /// <summary>
 /// Draws an <see cref="IOverlay"/> over an <see cref="Image"/>.
 /// </summary>
 public static void Draw(this IOverlay overlay, Image img, Point Offset = default(Point))
 {
     if (img != null)
     {
         using (var g = Graphics.FromImage(img))
             overlay.Draw(g, Offset);
     }
 }