Skip to content

Commit

Permalink
Marked properties as obsolete.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlemstra committed Nov 12, 2023
1 parent d48c2f0 commit 9f47216
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/Magick.NET.Core/IMagickImage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ public partial interface IMagickImage : IDisposable
/// Gets the preferred size of the image when encoding.
/// </summary>
/// <exception cref="MagickException">Thrown when an error is raised by ImageMagick.</exception>
[Obsolete("Will be removed in the next major release.")]
IMagickGeometry? EncodingGeometry { get; }

/// <summary>
Expand All @@ -184,6 +185,7 @@ public partial interface IMagickImage : IDisposable
/// <summary>
/// Gets the information about the format of the image.
/// </summary>
[Obsolete("Will be removed in the next major release.")]
IMagickFormatInfo? FormatInfo { get; }

/// <summary>
Expand Down Expand Up @@ -220,6 +222,7 @@ public partial interface IMagickImage : IDisposable
/// <summary>
/// Gets a value indicating whether the instance is disposed.
/// </summary>
[Obsolete("Will be removed in the next major release.")]
bool IsDisposed { get; }

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion src/Magick.NET.Core/IMagickNET.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public interface IMagickNET
/// </summary>
/// <param name="name">The name of the environment variable.</param>
/// <returns>The environment variable with the specified name.</returns>
string GetEnvironmentVariable(string name);
string? GetEnvironmentVariable(string name);

/// <summary>
/// Initializes ImageMagick.
Expand Down
4 changes: 3 additions & 1 deletion src/Magick.NET/MagickImage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
using System.IO;
using System.Runtime.InteropServices.ComTypes;
using System.Threading;
using System.Threading.Tasks;

Expand Down Expand Up @@ -644,6 +643,7 @@ public int Depth
/// Gets the preferred size of the image when encoding.
/// </summary>
/// <exception cref="MagickException">Thrown when an error is raised by ImageMagick.</exception>
[Obsolete("Will be removed in the next major release.")]
public IMagickGeometry? EncodingGeometry
=> MagickGeometry.FromString(_nativeInstance.EncodingGeometry);

Expand Down Expand Up @@ -688,6 +688,7 @@ public MagickFormat Format
/// <summary>
/// Gets the information about the format of the image.
/// </summary>
[Obsolete("Will be removed in the next major release.")]
public IMagickFormatInfo? FormatInfo
=> MagickFormatInfo.Create(Format);

Expand Down Expand Up @@ -755,6 +756,7 @@ public PixelInterpolateMethod Interpolate
/// <summary>
/// Gets a value indicating whether the instance is disposed.
/// </summary>
[Obsolete("Will be removed in the next major release.")]
public bool IsDisposed
=> _nativeInstance.IsDisposed;

Expand Down

0 comments on commit 9f47216

Please sign in to comment.