using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; namespace RichCreator.Utility.Captures.DesktopDuplication { /// /// Provides image data, cursor data, and image metadata about the retrieved desktop frame. /// public class DesktopFrame { /// /// Gets the bitmap representing the last retrieved desktop frame. This image spans the entire bounds of the specified monitor. /// public Bitmap DesktopImage { get; internal set; } /// /// Gets a list of the rectangles of pixels in the desktop image that the operating system moved to another location within the same image. /// /// /// To produce a visually accurate copy of the desktop, an application must first process all moved regions before it processes updated regions. /// public MovedRegion[] MovedRegions { get; internal set; } /// /// Returns the list of non-overlapping rectangles that indicate the areas of the desktop image that the operating system updated since the last retrieved frame. /// /// /// To produce a visually accurate copy of the desktop, an application must first process all moved regions before it processes updated regions. /// public Rectangle[] UpdatedRegions { get; internal set; } /// /// The number of frames that the operating system accumulated in the desktop image surface since the last retrieved frame. /// public int AccumulatedFrames { get; internal set; } /// /// Gets the location of the top-left-hand corner of the cursor. This is not necessarily the same position as the cursor's hot spot, which is the location in the cursor that interacts with other elements on the screen. /// public Point CursorLocation { get; internal set; } /// /// Gets whether the cursor on the last retrieved desktop image was visible. /// public bool CursorVisible { get; internal set; } /// /// Gets whether the desktop image contains protected content that was already blacked out in the desktop image. /// public bool ProtectedContentMaskedOut { get; internal set; } /// /// Gets whether the operating system accumulated updates by coalescing updated regions. If so, the updated regions might contain unmodified pixels. /// public bool RectanglesCoalesced { get; internal set; } } }