Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions src/CoreGraphics/CGImage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,21 +34,23 @@ namespace CoreGraphics {

#if MONOMAC || __MACCATALYST__
// uint32_t -> CGWindow.h (OSX SDK only)
/// <summary>To be added.</summary>
/// <remarks>To be added.</remarks>
/// <summary>Options that control how Core Graphics creates an image from a list of windows.</summary>
/// <remarks>Combine these flags to control image bounds, opacity, shadows, and resolution.</remarks>
[SupportedOSPlatform ("maccatalyst")]
[SupportedOSPlatform ("macos")]
[Flags]
public enum CGWindowImageOption : uint {
/// <summary>To be added.</summary>
/// <summary>Uses the default behavior when creating a window image.</summary>
Default = 0,
/// <summary>To be added.</summary>
/// <summary>When <c>CGRectNull</c> is used for the bounds, excludes window frame ornamentation, such as shadows, from the bounds calculation.</summary>
BoundsIgnoreFraming = (1 << 0),
/// <summary>To be added.</summary>
/// <summary>Forces the resulting image to be opaque, filling empty areas with white.</summary>
ShouldBeOpaque = (1 << 1),
/// <summary>To be added.</summary>
/// <summary>Draws only the windows' shadows, not the windows themselves.</summary>
OnlyShadows = (1 << 2),
/// <summary>Returns the image at the best resolution; its dimensions may differ from the screen-space bounds.</summary>
BestResolution = (1 << 3),
/// <summary>Returns the image at nominal resolution, with dimensions matching the screen-space bounds.</summary>
NominalResolution = (1 << 4),
}

Expand Down
2 changes: 0 additions & 2 deletions tests/cecil-tests/Documentation.KnownFailures.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1872,8 +1872,6 @@ F:CoreGraphics.CGToneMapping.ImageSpecificLumaScaling
F:CoreGraphics.CGToneMapping.IturRecommended
F:CoreGraphics.CGToneMapping.None
F:CoreGraphics.CGToneMapping.ReferenceWhiteBased
F:CoreGraphics.CGWindowImageOption.BestResolution
F:CoreGraphics.CGWindowImageOption.NominalResolution
F:CoreGraphics.NMatrix2.M11
F:CoreGraphics.NMatrix2.M12
F:CoreGraphics.NMatrix2.M21
Expand Down
Loading