Skip to content

Commit 1129382

Browse files
committed
Add UnsafeSetFormatMetadata in ImageFrameMetadata
Signed-off-by: 舰队的偶像-岛风酱! <frg2089@outlook.com>
1 parent 520ff46 commit 1129382

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/ImageSharp/Metadata/ImageFrameMetadata.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,11 @@ public TFormatFrameMetadata GetFormatMetadata<TFormatMetadata, TFormatFrameMetad
9999
return newMeta;
100100
}
101101

102+
internal void UnsafeSetFormatMetadata(
103+
IImageFormat key,
104+
IDeepCloneable value)
105+
=> this.formatMetadata[key] = value;
106+
102107
/// <summary>
103108
/// Gets the metadata value associated with the specified key.
104109
/// </summary>

0 commit comments

Comments
 (0)