Skip to content

Commit 4b69d06

Browse files
committed
Made GetPixelTypeInfo non static
1 parent 2bf8d78 commit 4b69d06

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

src/ImageSharp.ruleset

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<RuleSet Name="ImageSharp" ToolsVersion="17.0">
33
<Include Path="..\shared-infrastructure\sixlabors.ruleset" Action="Default" />
4-
<Rules AnalyzerId="Microsoft.CodeAnalysis.CSharp.NetAnalyzers" RuleNamespace="Microsoft.CodeAnalysis.CSharp.NetAnalyzers">
5-
<Rule Id="CA1000" Action="None"/>
6-
</Rules>
74
<Rules AnalyzerId="StyleCop.Analyzers" RuleNamespace="StyleCop.Analyzers">
85
<Rule Id="SA1011" Action="None" />
96
</Rules>

src/ImageSharp/PixelFormats/PixelOperations{TPixel}.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public partial class PixelOperations<TPixel>
3131
/// Gets the pixel type info for the given <typeparamref name="TPixel"/>.
3232
/// </summary>
3333
/// <returns>The <see cref="PixelTypeInfo"/>.</returns>
34-
public static PixelTypeInfo GetPixelTypeInfo() => TPixel.GetPixelTypeInfo();
34+
public PixelTypeInfo GetPixelTypeInfo() => TPixel.GetPixelTypeInfo();
3535

3636
/// <summary>
3737
/// Bulk version of <see cref="IPixel.FromVector4"/> converting 'sourceVectors.Length' pixels into 'destinationColors'.

0 commit comments

Comments
 (0)