Skip to content

Commit

Permalink
Merge branch 'dotnet:main' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
PWagner1 authored Feb 27, 2024
2 parents 21e4f75 + bddaf66 commit 5136653
Show file tree
Hide file tree
Showing 147 changed files with 5,017 additions and 3,820 deletions.
2 changes: 1 addition & 1 deletion .github/policies/resourceManagement.yml
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ configuration:
isRegex: False
then:
- addMilestone:
milestone: 9.0 Preview2
milestone: 9.0 Preview3
description: Apply milestone to PRs on the main branch
triggerOnOwnActions: true
- if:
Expand Down
19 changes: 19 additions & 0 deletions Winforms.sln
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "eng", "eng", "{8B4B1E09-B3C
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ScratchProjectWithInternals", "src\System.Windows.Forms\tests\IntegrationTests\ScratchProjectWithInternals\ScratchProjectWithInternals.csproj", "{522EBAB3-E4D2-45F3-ACBD-B25FC457BF78}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ComDisabled.Tests", "src\System.Windows.Forms\tests\ComDisabledTests\ComDisabled.Tests.csproj", "{55F3174F-C1FE-4C8F-AF71-2512630088F8}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -943,6 +945,22 @@ Global
{522EBAB3-E4D2-45F3-ACBD-B25FC457BF78}.Release|x64.Build.0 = Release|Any CPU
{522EBAB3-E4D2-45F3-ACBD-B25FC457BF78}.Release|x86.ActiveCfg = Release|Any CPU
{522EBAB3-E4D2-45F3-ACBD-B25FC457BF78}.Release|x86.Build.0 = Release|Any CPU
{55F3174F-C1FE-4C8F-AF71-2512630088F8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{55F3174F-C1FE-4C8F-AF71-2512630088F8}.Debug|Any CPU.Build.0 = Debug|Any CPU
{55F3174F-C1FE-4C8F-AF71-2512630088F8}.Debug|arm64.ActiveCfg = Debug|Any CPU
{55F3174F-C1FE-4C8F-AF71-2512630088F8}.Debug|arm64.Build.0 = Debug|Any CPU
{55F3174F-C1FE-4C8F-AF71-2512630088F8}.Debug|x64.ActiveCfg = Debug|Any CPU
{55F3174F-C1FE-4C8F-AF71-2512630088F8}.Debug|x64.Build.0 = Debug|Any CPU
{55F3174F-C1FE-4C8F-AF71-2512630088F8}.Debug|x86.ActiveCfg = Debug|Any CPU
{55F3174F-C1FE-4C8F-AF71-2512630088F8}.Debug|x86.Build.0 = Debug|Any CPU
{55F3174F-C1FE-4C8F-AF71-2512630088F8}.Release|Any CPU.ActiveCfg = Release|Any CPU
{55F3174F-C1FE-4C8F-AF71-2512630088F8}.Release|Any CPU.Build.0 = Release|Any CPU
{55F3174F-C1FE-4C8F-AF71-2512630088F8}.Release|arm64.ActiveCfg = Release|Any CPU
{55F3174F-C1FE-4C8F-AF71-2512630088F8}.Release|arm64.Build.0 = Release|Any CPU
{55F3174F-C1FE-4C8F-AF71-2512630088F8}.Release|x64.ActiveCfg = Release|Any CPU
{55F3174F-C1FE-4C8F-AF71-2512630088F8}.Release|x64.Build.0 = Release|Any CPU
{55F3174F-C1FE-4C8F-AF71-2512630088F8}.Release|x86.ActiveCfg = Release|Any CPU
{55F3174F-C1FE-4C8F-AF71-2512630088F8}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down Expand Up @@ -1004,6 +1022,7 @@ Global
{7650F24E-7132-42CF-ADCE-830C8DB26EE5} = {583F1292-AE8D-4511-B8D8-A81FE4642DDC}
{BA61D5A8-29E9-41AA-A3FA-B7F0A7F9A191} = {680FB14C-7B0C-4D63-9F1A-18ACCDB0F52A}
{61376D2A-4AD5-48F4-BF99-2BB630E21945} = {77FEDB47-F7F6-490D-AF7C-ABB4A9E0B9D7}
{55F3174F-C1FE-4C8F-AF71-2512630088F8} = {583F1292-AE8D-4511-B8D8-A81FE4642DDC}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {7B1B0433-F612-4E5A-BE7E-FCF5B9F6E136}
Expand Down
1 change: 1 addition & 0 deletions eng/Publishing.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
<Project>
<PropertyGroup>
<PublishingVersion>3</PublishingVersion>
<ProducesDotNetReleaseShippingAssets>true</ProducesDotNetReleaseShippingAssets>
</PropertyGroup>
</Project>
196 changes: 98 additions & 98 deletions eng/Version.Details.xml

Large diffs are not rendered by default.

63 changes: 32 additions & 31 deletions eng/Versions.props
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<PatchVersion>0</PatchVersion>
<!-- version in our package name #.#.#-below.#####.## -->
<PreReleaseVersionLabel>preview</PreReleaseVersionLabel>
<PreReleaseVersionIteration>2</PreReleaseVersionIteration>
<PreReleaseVersionIteration>3</PreReleaseVersionIteration>
<VersionPrefix>$(MajorVersion).$(MinorVersion).$(PatchVersion)</VersionPrefix>
<!-- Use the compiler in the CLI instead of in the sdk, since CLI is newer. -->
<UsingToolMicrosoftNetCompilers>false</UsingToolMicrosoftNetCompilers>
Expand All @@ -15,35 +15,35 @@
</PropertyGroup>
<!-- Below have corresponding entries in Versions.Details.XML because they are updated via Maestro -->
<PropertyGroup>
<VSRedistCommonNetCoreSharedFrameworkx6490PackageVersion>9.0.0-preview.2.24115.1</VSRedistCommonNetCoreSharedFrameworkx6490PackageVersion>
<SystemDiagnosticsEventLogPackageVersion>9.0.0-preview.2.24115.1</SystemDiagnosticsEventLogPackageVersion>
<SystemDirectoryServicesPackageVersion>9.0.0-preview.2.24115.1</SystemDirectoryServicesPackageVersion>
<SystemReflectionMetadataLoadContextPackageVersion>9.0.0-preview.2.24115.1</SystemReflectionMetadataLoadContextPackageVersion>
<SystemSecurityCryptographyXmlPackageVersion>9.0.0-preview.2.24115.1</SystemSecurityCryptographyXmlPackageVersion>
<SystemIOHashingPackageVersion>9.0.0-preview.2.24115.1</SystemIOHashingPackageVersion>
<SystemIOPackagingPackageVersion>9.0.0-preview.2.24115.1</SystemIOPackagingPackageVersion>
<VSRedistCommonNetCoreSharedFrameworkx6490PackageVersion>9.0.0-preview.3.24126.1</VSRedistCommonNetCoreSharedFrameworkx6490PackageVersion>
<SystemDiagnosticsEventLogPackageVersion>9.0.0-preview.3.24126.1</SystemDiagnosticsEventLogPackageVersion>
<SystemDirectoryServicesPackageVersion>9.0.0-preview.3.24126.1</SystemDirectoryServicesPackageVersion>
<SystemReflectionMetadataLoadContextPackageVersion>9.0.0-preview.3.24126.1</SystemReflectionMetadataLoadContextPackageVersion>
<SystemSecurityCryptographyXmlPackageVersion>9.0.0-preview.3.24126.1</SystemSecurityCryptographyXmlPackageVersion>
<SystemIOHashingPackageVersion>9.0.0-preview.3.24126.1</SystemIOHashingPackageVersion>
<SystemIOPackagingPackageVersion>9.0.0-preview.3.24126.1</SystemIOPackagingPackageVersion>
<MicrosoftNETCoreRuntimeCoreCLRPackageVersion>5.0.0-preview.7.20320.5</MicrosoftNETCoreRuntimeCoreCLRPackageVersion>
<MicrosoftNETCoreILDAsmPackageVersion>9.0.0-preview.2.24115.1</MicrosoftNETCoreILDAsmPackageVersion>
<SystemDiagnosticsPerformanceCounterPackageVersion>9.0.0-preview.2.24115.1</SystemDiagnosticsPerformanceCounterPackageVersion>
<MicrosoftNETCoreILDAsmPackageVersion>9.0.0-preview.3.24126.1</MicrosoftNETCoreILDAsmPackageVersion>
<SystemDiagnosticsPerformanceCounterPackageVersion>9.0.0-preview.3.24126.1</SystemDiagnosticsPerformanceCounterPackageVersion>
<SystemRuntimeCompilerServicesUnsafePackageVersion>6.0.0</SystemRuntimeCompilerServicesUnsafePackageVersion>
<SystemSecurityCryptographyPkcsPackageVersion>9.0.0-preview.2.24115.1</SystemSecurityCryptographyPkcsPackageVersion>
<SystemSecurityCryptographyProtectedDataPackageVersion>9.0.0-preview.2.24115.1</SystemSecurityCryptographyProtectedDataPackageVersion>
<SystemTextEncodingsWebPackageVersion>9.0.0-preview.2.24115.1</SystemTextEncodingsWebPackageVersion>
<SystemTextJsonPackageVersion>9.0.0-preview.2.24115.1</SystemTextJsonPackageVersion>
<SystemThreadingAccessControlPackageVersion>9.0.0-preview.2.24115.1</SystemThreadingAccessControlPackageVersion>
<MicrosoftWin32RegistryAccessControlPackageVersion>9.0.0-preview.2.24115.1</MicrosoftWin32RegistryAccessControlPackageVersion>
<MicrosoftNETCoreAppRefPackageVersion>9.0.0-preview.2.24115.1</MicrosoftNETCoreAppRefPackageVersion>
<MicrosoftNETCoreAppRuntimewinx64PackageVersion>9.0.0-preview.2.24115.1</MicrosoftNETCoreAppRuntimewinx64PackageVersion>
<MicrosoftNETCorePlatformsPackageVersion>9.0.0-preview.2.24115.1</MicrosoftNETCorePlatformsPackageVersion>
<MicrosoftWin32SystemEventsPackageVersion>9.0.0-preview.2.24115.1</MicrosoftWin32SystemEventsPackageVersion>
<SystemCodeDomPackageVersion>9.0.0-preview.2.24115.1</SystemCodeDomPackageVersion>
<SystemConfigurationConfigurationManagerPackageVersion>9.0.0-preview.2.24115.1</SystemConfigurationConfigurationManagerPackageVersion>
<SystemResourcesExtensionsPackageVersion>9.0.0-preview.2.24115.1</SystemResourcesExtensionsPackageVersion>
<SystemSecurityPermissionsPackageVersion>9.0.0-preview.2.24115.1</SystemSecurityPermissionsPackageVersion>
<SystemWindowsExtensionsPackageVersion>9.0.0-preview.2.24115.1</SystemWindowsExtensionsPackageVersion>
<MicrosoftNETCoreILAsmPackageVersion>9.0.0-preview.2.24115.1</MicrosoftNETCoreILAsmPackageVersion>
<runtimewinx64MicrosoftNETCoreILAsmPackageVersion>9.0.0-preview.2.24115.1</runtimewinx64MicrosoftNETCoreILAsmPackageVersion>
<runtimewinx86MicrosoftNETCoreILAsmPackageVersion>9.0.0-preview.2.24115.1</runtimewinx86MicrosoftNETCoreILAsmPackageVersion>
<SystemSecurityCryptographyPkcsPackageVersion>9.0.0-preview.3.24126.1</SystemSecurityCryptographyPkcsPackageVersion>
<SystemSecurityCryptographyProtectedDataPackageVersion>9.0.0-preview.3.24126.1</SystemSecurityCryptographyProtectedDataPackageVersion>
<SystemTextEncodingsWebPackageVersion>9.0.0-preview.3.24126.1</SystemTextEncodingsWebPackageVersion>
<SystemTextJsonPackageVersion>9.0.0-preview.3.24126.1</SystemTextJsonPackageVersion>
<SystemThreadingAccessControlPackageVersion>9.0.0-preview.3.24126.1</SystemThreadingAccessControlPackageVersion>
<MicrosoftWin32RegistryAccessControlPackageVersion>9.0.0-preview.3.24126.1</MicrosoftWin32RegistryAccessControlPackageVersion>
<MicrosoftNETCoreAppRefPackageVersion>9.0.0-preview.3.24126.1</MicrosoftNETCoreAppRefPackageVersion>
<MicrosoftNETCoreAppRuntimewinx64PackageVersion>9.0.0-preview.3.24126.1</MicrosoftNETCoreAppRuntimewinx64PackageVersion>
<MicrosoftNETCorePlatformsPackageVersion>9.0.0-preview.3.24126.1</MicrosoftNETCorePlatformsPackageVersion>
<MicrosoftWin32SystemEventsPackageVersion>9.0.0-preview.3.24126.1</MicrosoftWin32SystemEventsPackageVersion>
<SystemCodeDomPackageVersion>9.0.0-preview.3.24126.1</SystemCodeDomPackageVersion>
<SystemConfigurationConfigurationManagerPackageVersion>9.0.0-preview.3.24126.1</SystemConfigurationConfigurationManagerPackageVersion>
<SystemResourcesExtensionsPackageVersion>9.0.0-preview.3.24126.1</SystemResourcesExtensionsPackageVersion>
<SystemSecurityPermissionsPackageVersion>9.0.0-preview.3.24126.1</SystemSecurityPermissionsPackageVersion>
<SystemWindowsExtensionsPackageVersion>9.0.0-preview.3.24126.1</SystemWindowsExtensionsPackageVersion>
<MicrosoftNETCoreILAsmPackageVersion>9.0.0-preview.3.24126.1</MicrosoftNETCoreILAsmPackageVersion>
<runtimewinx64MicrosoftNETCoreILAsmPackageVersion>9.0.0-preview.3.24126.1</runtimewinx64MicrosoftNETCoreILAsmPackageVersion>
<runtimewinx86MicrosoftNETCoreILAsmPackageVersion>9.0.0-preview.3.24126.1</runtimewinx86MicrosoftNETCoreILAsmPackageVersion>
<!--
Microsoft.NET.Sdk.IL.targets requires definition of MicrosoftNETCoreILAsmVersion
-->
Expand All @@ -56,9 +56,9 @@
</PropertyGroup>
<!-- Arcade -->
<PropertyGroup>
<MicrosoftDotNetGenFacadesPackageVersion>9.0.0-beta.24112.1</MicrosoftDotNetGenFacadesPackageVersion>
<MicrosoftDotNetRemoteExecutorVersion>9.0.0-beta.24112.1</MicrosoftDotNetRemoteExecutorVersion>
<MicrosoftDotNetXUnitExtensionsPackageVersion>9.0.0-beta.24112.1</MicrosoftDotNetXUnitExtensionsPackageVersion>
<MicrosoftDotNetGenFacadesPackageVersion>9.0.0-beta.24114.1</MicrosoftDotNetGenFacadesPackageVersion>
<MicrosoftDotNetRemoteExecutorVersion>9.0.0-beta.24114.1</MicrosoftDotNetRemoteExecutorVersion>
<MicrosoftDotNetXUnitExtensionsPackageVersion>9.0.0-beta.24114.1</MicrosoftDotNetXUnitExtensionsPackageVersion>
<MicrosoftNETTestSdkVersion>17.4.0-preview-20220707-01</MicrosoftNETTestSdkVersion>
</PropertyGroup>
<!-- Below have no corresponding entries in Versions.Details.XML because they are not updated via Maestro -->
Expand Down Expand Up @@ -103,6 +103,7 @@
<MicrosoftCodeAnalysisPublicApiAnalyzersVersion>$(MicrosoftCodeAnalysisAnalyzersVersion)</MicrosoftCodeAnalysisPublicApiAnalyzersVersion>
<MicrosoftCodeAnalysisNetAnalyzersVersion>8.0.0-preview.23327.3</MicrosoftCodeAnalysisNetAnalyzersVersion>
<StyleCopAnalyzersVersion>1.2.0-beta.507</StyleCopAnalyzersVersion>
<NugetPackagingVersion>6.3.4</NugetPackagingVersion>
</PropertyGroup>
<!-- Additional unchanging dependencies -->
<PropertyGroup>
Expand Down
8 changes: 4 additions & 4 deletions global.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
"version": "9.0.100-alpha.1.23618.3"
},
"msbuild-sdks": {
"Microsoft.DotNet.Arcade.Sdk": "9.0.0-beta.24112.1",
"Microsoft.DotNet.CMake.Sdk": "9.0.0-beta.24112.1",
"Microsoft.DotNet.Helix.Sdk": "9.0.0-beta.24112.1",
"Microsoft.DotNet.Arcade.Sdk": "9.0.0-beta.24114.1",
"Microsoft.DotNet.CMake.Sdk": "9.0.0-beta.24114.1",
"Microsoft.DotNet.Helix.Sdk": "9.0.0-beta.24114.1",
"FIX-85B6-MERGE-9C38-CONFLICT": "1.0.0",
"Microsoft.NET.Sdk.IL": "9.0.0-preview.2.24115.1"
"Microsoft.NET.Sdk.IL": "9.0.0-preview.3.24126.1"
},
"native-tools": {
"cmake": "latest"
Expand Down
1 change: 1 addition & 0 deletions src/System.Design/src/System.Design.Forwards.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
[assembly: TypeForwardedTo(typeof(System.Windows.Forms.Design.ColumnHeaderCollectionEditor))]
[assembly: TypeForwardedTo(typeof(System.Windows.Forms.Design.DataMemberFieldConverter))]
[assembly: TypeForwardedTo(typeof(System.Windows.Forms.Design.DataGridViewCellStyleEditor))]
[assembly: TypeForwardedTo(typeof(System.Windows.Forms.Design.DataGridViewColumnTypeEditor))]
[assembly: TypeForwardedTo(typeof(System.Windows.Forms.Design.DataSourceListEditor))]
[assembly: TypeForwardedTo(typeof(System.Windows.Forms.Design.FormatStringEditor))]
[assembly: TypeForwardedTo(typeof(System.Windows.Forms.Design.HelpNamespaceEditor))]
Expand Down
3 changes: 3 additions & 0 deletions src/System.Drawing.Common/src/GlobalUsings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,15 @@
global using DashCap = System.Drawing.Drawing2D.DashCap;
global using DashStyle = System.Drawing.Drawing2D.DashStyle;
global using EmfPlusRecordType = System.Drawing.Imaging.EmfPlusRecordType;
global using FillMode = System.Drawing.Drawing2D.FillMode;
global using ImageCodecInfo = System.Drawing.Imaging.ImageCodecInfo;
global using ImageLockMode = System.Drawing.Imaging.ImageLockMode;
global using LineCap = System.Drawing.Drawing2D.LineCap;
global using LineJoin = System.Drawing.Drawing2D.LineJoin;
global using Matrix = System.Drawing.Drawing2D.Matrix;
global using MatrixOrder = System.Drawing.Drawing2D.MatrixOrder;
global using PenAlignment = System.Drawing.Drawing2D.PenAlignment;
global using PixelFormat = System.Drawing.Imaging.PixelFormat;
global using PixelOffsetMode = System.Drawing.Drawing2D.PixelOffsetMode;
global using TextRenderingHint = System.Drawing.Text.TextRenderingHint;

Expand Down
6 changes: 1 addition & 5 deletions src/System.Drawing.Common/src/NativeMethods.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,8 @@ GdipBeginContainer2
GdipBitmapApplyEffect
GdipBitmapConvertFormat
GdipBitmapGetPixel
GdipBitmapLockBits
GdipBitmapSetPixel
GdipBitmapSetResolution
GdipBitmapUnlockBits
GdipClearPathMarkers
GdipCloneBitmapArea
GdipCloneBitmapAreaI
Expand Down Expand Up @@ -250,7 +248,6 @@ GdipGetHatchForegroundColor
GdipGetHatchStyle
GdipGetHemfFromMetafile
GdipGetImageAttributesAdjustedPalette
GdipGetImageBounds
GdipGetImageDecoders
GdipGetImageDecodersSize
GdipGetImageDimension
Expand All @@ -260,7 +257,6 @@ GdipGetImageHeight
GdipGetImageHorizontalResolution
GdipGetImagePalette
GdipGetImagePaletteSize
GdipGetImagePixelFormat
GdipGetImageRawFormat
GdipGetImageThumbnail
GdipGetImageType
Expand Down Expand Up @@ -558,7 +554,7 @@ LevelsParams
PALETTEENTRY
PaletteFlags
PaletteType
PixelFormat*
PathPointType
PRINTER_ENUM_CONNECTIONS
PRINTER_ENUM_LOCAL
PRINTER_INFO_4W
Expand Down
4 changes: 2 additions & 2 deletions src/System.Drawing.Common/src/Special/NotSupported.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// Changes to this file must follow the https://aka.ms/api-review process.
// ------------------------------------------------------------------------------

#pragma warning disable CS8618,CS0169,CA1823,CA1066
#pragma warning disable CS8618,CS0169,CA1725,CA1823,CA1066,IDE0001,IDE0002,IDE1006,IDE0034,IDE0044,IDE0051,IDE0055,IDE1006

namespace System.Drawing
{
Expand Down Expand Up @@ -3221,4 +3221,4 @@ public enum TextRenderingHint
}
}

#pragma warning restore CS8618
#pragma warning restore CS8618,CS0169,CA1725,CA1823,CA1066,IDE0001,IDE0002,IDE1006,IDE0034,IDE0044,IDE0051,IDE0055,IDE1006
17 changes: 8 additions & 9 deletions src/System.Drawing.Common/src/System/Drawing/Bitmap.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,15 @@
using System.Runtime.Versioning;
#endif
using System.IO;
using System.Runtime.CompilerServices;
using System.Runtime.Serialization;

namespace System.Drawing;

[Editor($"System.Drawing.Design.BitmapEditor, {AssemblyRef.SystemDrawingDesign}",
$"System.Drawing.Design.UITypeEditor, {AssemblyRef.SystemDrawing}")]
[Serializable]
[Runtime.CompilerServices.TypeForwardedFrom(AssemblyRef.SystemDrawing)]
[TypeForwardedFrom(AssemblyRef.SystemDrawing)]
public sealed unsafe class Bitmap : Image, IPointer<GpBitmap>
{
private static readonly Color s_defaultTransparentColor = Color.LightGray;
Expand Down Expand Up @@ -267,12 +268,11 @@ public BitmapData LockBits(Rectangle rect, ImageLockMode flags, PixelFormat form

fixed (void* data = &bitmapData.GetPinnableReference())
{
PInvoke.GdipBitmapLockBits(
this.Pointer(),
rect.IsEmpty ? null : (Rect*)&rect,
(uint)flags,
(int)format,
(GdiPlus.BitmapData*)data).ThrowIfFailed();
this.LockBits(
rect,
(GdiPlus.ImageLockMode)flags,
(GdiPlus.PixelFormat)format,
ref Unsafe.AsRef<GdiPlus.BitmapData>(data));
}

GC.KeepAlive(this);
Expand All @@ -285,7 +285,7 @@ public void UnlockBits(BitmapData bitmapdata)

fixed (void* data = &bitmapdata.GetPinnableReference())
{
PInvoke.GdipBitmapUnlockBits(this.Pointer(), (GdiPlus.BitmapData*)data).ThrowIfFailed();
this.UnlockBits(ref Unsafe.AsRef<GdiPlus.BitmapData>(data));
}

GC.KeepAlive(this);
Expand Down Expand Up @@ -365,7 +365,6 @@ public Bitmap Clone(Rectangle rect, PixelFormat format)
/// </summary>
/// <param name="effect">The effect to apply.</param>
/// <param name="area">The area to apply to, or <see cref="Rectangle.Empty"/> for the entire image.</param>
[RequiresPreviewFeatures]
public void ApplyEffect(Effect effect, Rectangle area = default)
{
RECT rect = area;
Expand Down
Loading

0 comments on commit 5136653

Please sign in to comment.