-
-
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.
Merge pull request #1062 from SixLabors/js/smart-non-generic-api
Add La16 and La32 IPixel formats.
- Loading branch information
Showing
269 changed files
with
3,907 additions
and
918 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
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
File renamed without changes.
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,21 @@ | ||
// Copyright (c) Six Labors and contributors. | ||
// Licensed under the Apache License, Version 2.0. | ||
|
||
using SixLabors.ImageSharp.Formats.Bmp; | ||
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 bmp format specific metadata for the image. | ||
/// </summary> | ||
/// <param name="metadata">The metadata this method extends.</param> | ||
/// <returns>The <see cref="BmpMetadata"/>.</returns> | ||
public static BmpMetadata GetBmpMetadata(this ImageMetadata metadata) => metadata.GetFormatMetadata(BmpFormat.Instance); | ||
} | ||
} |
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
File renamed without changes.
File renamed without changes.
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,28 @@ | ||
// Copyright (c) Six Labors and contributors. | ||
// Licensed under the Apache License, Version 2.0. | ||
|
||
using SixLabors.ImageSharp.Formats.Gif; | ||
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 gif format specific metadata for the image. | ||
/// </summary> | ||
/// <param name="metadata">The metadata this method extends.</param> | ||
/// <returns>The <see cref="GifMetadata"/>.</returns> | ||
public static GifMetadata GetGifMetadata(this ImageMetadata metadata) => metadata.GetFormatMetadata(GifFormat.Instance); | ||
|
||
/// <summary> | ||
/// Gets the gif format specific metadata for the image frame. | ||
/// </summary> | ||
/// <param name="metadata">The metadata this method extends.</param> | ||
/// <returns>The <see cref="GifFrameMetadata"/>.</returns> | ||
public static GifFrameMetadata GetGifMetadata(this ImageFrameMetadata metadata) => metadata.GetFormatMetadata(GifFormat.Instance); | ||
} | ||
} |
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
File renamed without changes.
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,21 @@ | ||
// Copyright (c) Six Labors and contributors. | ||
// Licensed under the Apache License, Version 2.0. | ||
|
||
using SixLabors.ImageSharp.Formats.Jpeg; | ||
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 jpeg format specific metadata for the image. | ||
/// </summary> | ||
/// <param name="metadata">The metadata this method extends.</param> | ||
/// <returns>The <see cref="JpegMetadata"/>.</returns> | ||
public static JpegMetadata GetJpegMetadata(this ImageMetadata metadata) => metadata.GetFormatMetadata(JpegFormat.Instance); | ||
} | ||
} |
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,21 @@ | ||
// Copyright (c) Six Labors and contributors. | ||
// Licensed under the Apache License, Version 2.0. | ||
|
||
using SixLabors.ImageSharp.Formats.Png; | ||
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 png format specific metadata for the image. | ||
/// </summary> | ||
/// <param name="metadata">The metadata this method extends.</param> | ||
/// <returns>The <see cref="PngMetadata"/>.</returns> | ||
public static PngMetadata GetPngMetadata(this ImageMetadata metadata) => metadata.GetFormatMetadata(PngFormat.Instance); | ||
} | ||
} |
Oops, something went wrong.