mirror of https://github.com/SixLabors/ImageSharp
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
1.0 KiB
27 lines
1.0 KiB
// Copyright (c) Six Labors.
|
|
// Licensed under the Six Labors Split License.
|
|
|
|
using SixLabors.ImageSharp.Formats.Tiff;
|
|
using SixLabors.ImageSharp.Metadata;
|
|
|
|
namespace SixLabors.ImageSharp;
|
|
|
|
/// <summary>
|
|
/// Extension methods for the <see cref="ImageMetadata"/> type.
|
|
/// </summary>
|
|
public static partial class MetadataExtensions
|
|
{
|
|
/// <summary>
|
|
/// Gets the tiff format specific metadata for the image.
|
|
/// </summary>
|
|
/// <param name="metadata">The metadata this method extends.</param>
|
|
/// <returns>The <see cref="TiffMetadata"/>.</returns>
|
|
public static TiffMetadata GetTiffMetadata(this ImageMetadata metadata) => metadata.GetFormatMetadata(TiffFormat.Instance);
|
|
|
|
/// <summary>
|
|
/// Gets the tiff format specific metadata for the image frame.
|
|
/// </summary>
|
|
/// <param name="metadata">The metadata this method extends.</param>
|
|
/// <returns>The <see cref="TiffFrameMetadata"/>.</returns>
|
|
public static TiffFrameMetadata GetTiffMetadata(this ImageFrameMetadata metadata) => metadata.GetFormatMetadata(TiffFormat.Instance);
|
|
}
|
|
|