Browse Source

Fix build

pull/2633/head
Ynse Hoornenborg 9 months ago
parent
commit
fc2cf57c00
  1. 2
      .editorconfig
  2. 12
      src/ImageSharp/Formats/Heif/HeifMetadata.cs
  3. 2
      src/ImageSharp/ImageSharp.csproj

2
.editorconfig

@ -181,8 +181,6 @@ csharp_style_prefer_primary_constructors = false:none
dotnet_style_prefer_collection_expression = true:error
resharper_use_collection_expression_highlighting =true:error
##########################################
# Unnecessary Code Rules
# https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/unnecessary-code-rules

12
src/ImageSharp/Formats/Heif/HeifMetadata.cs

@ -1,6 +1,7 @@
// Copyright (c) Six Labors.
// Licensed under the Six Labors Split License.
using System.Numerics;
using SixLabors.ImageSharp.PixelFormats;
namespace SixLabors.ImageSharp.Formats.Heif;
@ -30,13 +31,10 @@ public class HeifMetadata : IFormatMetadata<HeifMetadata>
public HeifCompressionMethod CompressionMethod { get; set; }
/// <inheritdoc/>
public static HeifMetadata FromFormatConnectingMetadata(FormatConnectingMetadata metadata)
public static HeifMetadata FromFormatConnectingMetadata(FormatConnectingMetadata metadata) => new()
{
return new HeifMetadata
{
CompressionMethod = HeifCompressionMethod.LegacyJpeg
};
}
CompressionMethod = HeifCompressionMethod.LegacyJpeg
};
/// <inheritdoc/>
public PixelTypeInfo GetPixelTypeInfo()
@ -67,7 +65,7 @@ public class HeifMetadata : IFormatMetadata<HeifMetadata>
public HeifMetadata DeepClone() => new(this);
/// <inheritdoc/>
public void AfterImageApply<TPixel>(Image<TPixel> destination)
public void AfterImageApply<TPixel>(Image<TPixel> destination, Matrix4x4 matrix)
where TPixel : unmanaged, IPixel<TPixel>
{
}

2
src/ImageSharp/ImageSharp.csproj

@ -55,6 +55,7 @@
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>Heif4CharCode.tt</DependentUpon>
</Compile>
<Compile Update="Common\InlineArray.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
@ -156,6 +157,7 @@
<None Update="Formats\Heif\Heif4CharCode.tt">
<Generator>TextTemplatingFileGenerator</Generator>
<LastGenOutput>Heif4CharCode.cs</LastGenOutput>
</None>
<None Update="Common\InlineArray.tt">
<Generator>TextTemplatingFileGenerator</Generator>
<LastGenOutput>InlineArray.cs</LastGenOutput>

Loading…
Cancel
Save