diff --git a/src/ImageSharp/Formats/Bmp/BmpBitsPerPixel.cs b/src/ImageSharp/Formats/Bmp/BmpBitsPerPixel.cs index d08487cf27..0029a6b68d 100644 --- a/src/ImageSharp/Formats/Bmp/BmpBitsPerPixel.cs +++ b/src/ImageSharp/Formats/Bmp/BmpBitsPerPixel.cs @@ -16,6 +16,6 @@ namespace SixLabors.ImageSharp.Formats.Bmp /// /// 32 bits per pixel. Each pixel consists of 4 bytes. /// - Pixel32 = 4, + Pixel32 = 4 } -} +} \ No newline at end of file diff --git a/src/ImageSharp/Formats/Bmp/BmpCompression.cs b/src/ImageSharp/Formats/Bmp/BmpCompression.cs index 1280498acb..22b12346fb 100644 --- a/src/ImageSharp/Formats/Bmp/BmpCompression.cs +++ b/src/ImageSharp/Formats/Bmp/BmpCompression.cs @@ -58,4 +58,4 @@ namespace SixLabors.ImageSharp.Formats.Bmp /// PNG = 5 } -} +} \ No newline at end of file diff --git a/src/ImageSharp/Formats/Bmp/BmpConstants.cs b/src/ImageSharp/Formats/Bmp/BmpConstants.cs index b7291bb99e..99799b619c 100644 --- a/src/ImageSharp/Formats/Bmp/BmpConstants.cs +++ b/src/ImageSharp/Formats/Bmp/BmpConstants.cs @@ -20,4 +20,4 @@ namespace SixLabors.ImageSharp.Formats.Bmp /// public static readonly IEnumerable FileExtensions = new[] { "bm", "bmp", "dip" }; } -} +} \ No newline at end of file diff --git a/src/ImageSharp/Formats/Bmp/BmpEncoder.cs b/src/ImageSharp/Formats/Bmp/BmpEncoder.cs index d80e43c63b..9edd0fcd4e 100644 --- a/src/ImageSharp/Formats/Bmp/BmpEncoder.cs +++ b/src/ImageSharp/Formats/Bmp/BmpEncoder.cs @@ -1,8 +1,6 @@ // Copyright (c) Six Labors and contributors. // Licensed under the Apache License, Version 2.0. -using System; -using System.Collections.Generic; using System.IO; using SixLabors.ImageSharp.Advanced; using SixLabors.ImageSharp.PixelFormats; @@ -28,4 +26,4 @@ namespace SixLabors.ImageSharp.Formats.Bmp encoder.Encode(image, stream); } } -} +} \ No newline at end of file diff --git a/src/ImageSharp/MetaData/Profiles/Exif/ExifValue.cs b/src/ImageSharp/MetaData/Profiles/Exif/ExifValue.cs index 055c22995a..e64c6efec9 100644 --- a/src/ImageSharp/MetaData/Profiles/Exif/ExifValue.cs +++ b/src/ImageSharp/MetaData/Profiles/Exif/ExifValue.cs @@ -26,7 +26,6 @@ namespace SixLabors.ImageSharp.MetaData.Profiles.Exif this.DataType = other.DataType; this.IsArray = other.IsArray; this.Tag = other.Tag; - if (!other.IsArray) { @@ -52,7 +51,7 @@ namespace SixLabors.ImageSharp.MetaData.Profiles.Exif this.DataType = dataType; this.IsArray = isArray && dataType != ExifDataType.Ascii; this.Value = value; - + // this.CheckValue(value); } @@ -144,7 +143,7 @@ namespace SixLabors.ImageSharp.MetaData.Profiles.Exif public ExifValue WithValue(object value) { this.CheckValue(value); - + return new ExifValue(this.Tag, this.DataType, value, this.IsArray); }