Browse Source

Made GetPixelTypeInfo non static

pull/2601/head
Stefan Nikolei 3 years ago
parent
commit
4b69d06a4b
  1. 3
      src/ImageSharp.ruleset
  2. 2
      src/ImageSharp/PixelFormats/PixelOperations{TPixel}.cs

3
src/ImageSharp.ruleset

@ -1,9 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<RuleSet Name="ImageSharp" ToolsVersion="17.0">
<Include Path="..\shared-infrastructure\sixlabors.ruleset" Action="Default" />
<Rules AnalyzerId="Microsoft.CodeAnalysis.CSharp.NetAnalyzers" RuleNamespace="Microsoft.CodeAnalysis.CSharp.NetAnalyzers">
<Rule Id="CA1000" Action="None"/>
</Rules>
<Rules AnalyzerId="StyleCop.Analyzers" RuleNamespace="StyleCop.Analyzers">
<Rule Id="SA1011" Action="None" />
</Rules>

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

@ -31,7 +31,7 @@ public partial class PixelOperations<TPixel>
/// Gets the pixel type info for the given <typeparamref name="TPixel"/>.
/// </summary>
/// <returns>The <see cref="PixelTypeInfo"/>.</returns>
public static PixelTypeInfo GetPixelTypeInfo() => TPixel.GetPixelTypeInfo();
public PixelTypeInfo GetPixelTypeInfo() => TPixel.GetPixelTypeInfo();
/// <summary>
/// Bulk version of <see cref="IPixel.FromVector4"/> converting 'sourceVectors.Length' pixels into 'destinationColors'.

Loading…
Cancel
Save