-
-
Notifications
You must be signed in to change notification settings - Fork 852
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
36cf43a
commit 6f211c1
Showing
14 changed files
with
133 additions
and
140 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 3 additions & 2 deletions
5
...ageSharp/Formats/Icon/IconAssertHelper.cs → ...ImageSharp/Formats/Ico/IcoAssertHelper.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...p/Formats/Icon/IconConfigurationModule.cs → ...arp/Formats/Ico/IcoConfigurationModule.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/ImageSharp/Formats/Icon/IconConstants.cs → src/ImageSharp/Formats/Ico/IcoConstants.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
// Copyright (c) Six Labors. | ||
// Licensed under the Six Labors Split License. | ||
|
||
namespace SixLabors.ImageSharp.Formats.Ico; | ||
|
||
/// <summary> | ||
/// Registers the image encoders, decoders and mime type detectors for the ICO format. | ||
/// </summary> | ||
public sealed class IcoFormat : IImageFormat<IcoMetadata, IcoFrameMetadata> | ||
{ | ||
private IcoFormat() | ||
{ | ||
} | ||
|
||
/// <summary> | ||
/// Gets the shared instance. | ||
/// </summary> | ||
public static IcoFormat Instance { get; } = new(); | ||
|
||
/// <inheritdoc/> | ||
public string Name => "ICO"; | ||
|
||
/// <inheritdoc/> | ||
public string DefaultMimeType => IcoConstants.MimeTypes.First(); | ||
|
||
/// <inheritdoc/> | ||
public IEnumerable<string> MimeTypes => IcoConstants.MimeTypes; | ||
|
||
/// <inheritdoc/> | ||
public IEnumerable<string> FileExtensions => IcoConstants.FileExtensions; | ||
|
||
/// <inheritdoc/> | ||
public IcoMetadata CreateDefaultFormatMetadata() => new(); | ||
|
||
/// <inheritdoc/> | ||
public IcoFrameMetadata CreateDefaultFormatFrameMetadata() => new(); | ||
} |
Oops, something went wrong.