public static void DrawCursorToImage(Image img, Point offset)
 {
     using (MyCursor cursor = NativeMethods.CaptureCursor())
     {
         DrawCursorToImage(cursor, img, offset);
     }
 }
        public static void DrawCursorToImage(MyCursor cursor, Image img, Point offset)
        {
            cursor.Position.Offset(-offset.X, -offset.Y);

            using (Graphics g = Graphics.FromImage(img))
            {
                g.SmoothingMode = SmoothingMode.HighQuality;
                g.DrawImage(cursor.Bitmap, cursor.Position);
            }
        }
        public static void DrawCursorToImage(MyCursor cursor, Image img, Point offset)
        {
            cursor.Position.Offset(-offset.X, -offset.Y);

            using (Graphics g = Graphics.FromImage(img))
            {
                g.SmoothingMode = SmoothingMode.HighQuality;
                g.DrawImage(cursor.Bitmap, cursor.Position);
            }
        }