Skip to content

Commit d371a62

Browse files
Migrate TiffFrameMetadata
1 parent 1a9d578 commit d371a62

1 file changed

Lines changed: 15 additions & 4 deletions

File tree

src/ImageSharp/Formats/Tiff/TiffFrameMetadata.cs

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace SixLabors.ImageSharp.Formats.Tiff;
99
/// <summary>
1010
/// Provides Tiff specific metadata information for the frame.
1111
/// </summary>
12-
public class TiffFrameMetadata : IDeepCloneable
12+
public class TiffFrameMetadata : IFormatFrameMetadata<TiffFrameMetadata>
1313
{
1414
/// <summary>
1515
/// Initializes a new instance of the <see cref="TiffFrameMetadata"/> class.
@@ -61,6 +61,20 @@ private TiffFrameMetadata(TiffFrameMetadata other)
6161
/// </summary>
6262
public TiffInkSet? InkSet { get; set; }
6363

64+
/// <inheritdoc/>
65+
public static TiffFrameMetadata FromFormatConnectingFrameMetadata(FormatConnectingFrameMetadata metadata)
66+
=> new();
67+
68+
/// <inheritdoc/>
69+
public FormatConnectingFrameMetadata ToFormatConnectingFrameMetadata()
70+
=> new();
71+
72+
/// <inheritdoc/>
73+
IDeepCloneable IDeepCloneable.DeepClone() => this.DeepClone();
74+
75+
/// <inheritdoc/>
76+
public TiffFrameMetadata DeepClone() => new(this);
77+
6478
/// <summary>
6579
/// Returns a new <see cref="TiffFrameMetadata"/> instance parsed from the given Exif profile.
6680
/// </summary>
@@ -118,7 +132,4 @@ internal static void Parse(TiffFrameMetadata meta, ExifProfile profile)
118132
profile.RemoveValue(ExifTag.Predictor);
119133
}
120134
}
121-
122-
/// <inheritdoc/>
123-
public IDeepCloneable DeepClone() => new TiffFrameMetadata(this);
124135
}

0 commit comments

Comments
 (0)