diff --git a/src/ImageSharp/Colors/Color.cs b/src/ImageSharp/Colors/Color.cs index 16bcc14ce..656f9fac9 100644 --- a/src/ImageSharp/Colors/Color.cs +++ b/src/ImageSharp/Colors/Color.cs @@ -67,7 +67,7 @@ namespace ImageSharp } /// - /// Initializes a new instance of the struct. + /// Initializes a new instance of the struct. /// /// The red component. /// The green component. @@ -79,7 +79,7 @@ namespace ImageSharp } /// - /// Initializes a new instance of the struct. + /// Initializes a new instance of the struct. /// /// /// The vector containing the components for the packed vector. @@ -90,7 +90,7 @@ namespace ImageSharp } /// - /// Initializes a new instance of the struct. + /// Initializes a new instance of the struct. /// /// /// The vector containing the components for the packed vector. diff --git a/src/ImageSharp/Colors/ColorConstants.cs b/src/ImageSharp/Colors/ColorConstants.cs index 1d9adb338..f3b01f466 100644 --- a/src/ImageSharp/Colors/ColorConstants.cs +++ b/src/ImageSharp/Colors/ColorConstants.cs @@ -14,7 +14,7 @@ namespace ImageSharp public static class ColorConstants { /// - /// Provides a lazy, one time method of returning the colors. + /// Provides a lazy, one time method of returning the colors. /// private static readonly Lazy SafeColors = new Lazy(GetWebSafeColors); diff --git a/src/ImageSharp/Colors/ColorTransforms.cs b/src/ImageSharp/Colors/ColorTransforms.cs index 812b41b5d..e710b69e9 100644 --- a/src/ImageSharp/Colors/ColorTransforms.cs +++ b/src/ImageSharp/Colors/ColorTransforms.cs @@ -23,7 +23,7 @@ namespace ImageSharp /// /// The source color is multiplied by the destination color and replaces the destination. /// The resultant color is always at least as dark as either the source or destination color. - /// Multiplying any color with black results in black. Multiplying any color with white preserves the + /// Multiplying any color with black results in black. Multiplying any color with white preserves the /// original color. /// /// diff --git a/src/ImageSharp/Colors/ColorspaceTransforms.cs b/src/ImageSharp/Colors/ColorspaceTransforms.cs index 4d928330f..a1aca26fc 100644 --- a/src/ImageSharp/Colors/ColorspaceTransforms.cs +++ b/src/ImageSharp/Colors/ColorspaceTransforms.cs @@ -267,7 +267,7 @@ namespace ImageSharp } /// - /// Moves the specific value within the acceptable range for + /// Moves the specific value within the acceptable range for /// conversion. /// Used for converting colors to this type. /// diff --git a/src/ImageSharp/Colors/Colorspaces/IAlmostEquatable.cs b/src/ImageSharp/Colors/Colorspaces/IAlmostEquatable.cs index 5faaa02c0..1163657ed 100644 --- a/src/ImageSharp/Colors/Colorspaces/IAlmostEquatable.cs +++ b/src/ImageSharp/Colors/Colorspaces/IAlmostEquatable.cs @@ -8,12 +8,12 @@ namespace ImageSharp using System; /// - /// Defines a generalized method that a value type or class implements to create + /// Defines a generalized method that a value type or class implements to create /// a type-specific method for determining approximate equality of instances. /// /// The type of objects to compare. /// The object specifying the type to specify precision with. - public interface IAlmostEquatable + public interface IAlmostEquatable where TPrecision : struct, IComparable { /// diff --git a/src/ImageSharp/Colors/PackedPixel/IPackedBytes.cs b/src/ImageSharp/Colors/PackedPixel/IPackedBytes.cs index 21539c616..5793ea1ba 100644 --- a/src/ImageSharp/Colors/PackedPixel/IPackedBytes.cs +++ b/src/ImageSharp/Colors/PackedPixel/IPackedBytes.cs @@ -6,7 +6,7 @@ namespace ImageSharp { /// - /// An interface that converts packed vector types to and from values, + /// An interface that converts packed vector types to and from values, /// allowing multiple encodings to be manipulated in a generic manner. /// public interface IPackedBytes diff --git a/src/ImageSharp/Colors/PackedPixel/IPackedVector.cs b/src/ImageSharp/Colors/PackedPixel/IPackedVector.cs index c00d92208..cdf250a01 100644 --- a/src/ImageSharp/Colors/PackedPixel/IPackedVector.cs +++ b/src/ImageSharp/Colors/PackedPixel/IPackedVector.cs @@ -8,7 +8,7 @@ namespace ImageSharp using System.Numerics; /// - /// An interface that converts packed vector types to and from values, + /// An interface that converts packed vector types to and from values, /// allowing multiple encodings to be manipulated in a generic manner. /// /// The packed format. uint, long, float. diff --git a/src/ImageSharp/Filters/Processors/Binarization/BinaryThresholdProcessor.cs b/src/ImageSharp/Filters/Processors/Binarization/BinaryThresholdProcessor.cs index e5e604aa6..7721e0999 100644 --- a/src/ImageSharp/Filters/Processors/Binarization/BinaryThresholdProcessor.cs +++ b/src/ImageSharp/Filters/Processors/Binarization/BinaryThresholdProcessor.cs @@ -9,7 +9,7 @@ namespace ImageSharp.Processors using System.Threading.Tasks; /// - /// An to perform binary threshold filtering against an + /// An to perform binary threshold filtering against an /// . The image will be converted to grayscale before thresholding occurs. /// /// The pixel format. diff --git a/src/ImageSharp/Filters/Processors/BlendProcessor.cs b/src/ImageSharp/Filters/Processors/BlendProcessor.cs index 8ba4c9034..5f7f5270e 100644 --- a/src/ImageSharp/Filters/Processors/BlendProcessor.cs +++ b/src/ImageSharp/Filters/Processors/BlendProcessor.cs @@ -27,7 +27,7 @@ namespace ImageSharp.Processors /// Initializes a new instance of the class. /// /// - /// The image to blend with the currently processing image. + /// The image to blend with the currently processing image. /// Disposal of this image is the responsibility of the developer. /// /// The opacity of the image to blend. Between 0 and 100. diff --git a/src/ImageSharp/Formats/Gif/GifEncoderCore.cs b/src/ImageSharp/Formats/Gif/GifEncoderCore.cs index cd7e600bb..c4b7e1566 100644 --- a/src/ImageSharp/Formats/Gif/GifEncoderCore.cs +++ b/src/ImageSharp/Formats/Gif/GifEncoderCore.cs @@ -58,7 +58,7 @@ namespace ImageSharp.Formats this.Quantizer = new OctreeQuantizer(); } - // Do not use IDisposable pattern here as we want to preserve the stream. + // Do not use IDisposable pattern here as we want to preserve the stream. EndianBinaryWriter writer = new EndianBinaryWriter(EndianBitConverter.Little, stream); // Ensure that quality can be set but has a fallback. diff --git a/src/ImageSharp/Formats/Gif/LzwDecoder.cs b/src/ImageSharp/Formats/Gif/LzwDecoder.cs index 4a6990789..6d2ec0e13 100644 --- a/src/ImageSharp/Formats/Gif/LzwDecoder.cs +++ b/src/ImageSharp/Formats/Gif/LzwDecoder.cs @@ -147,7 +147,7 @@ namespace ImageSharp.Formats if (oldCode == NullCode) { - pixelStatck[top++] = suffix[code]; + pixelStatck[top++] = suffix[code]; oldCode = code; first = code; continue; diff --git a/src/ImageSharp/Formats/Gif/LzwEncoder.cs b/src/ImageSharp/Formats/Gif/LzwEncoder.cs index e16f43fbe..003cfa834 100644 --- a/src/ImageSharp/Formats/Gif/LzwEncoder.cs +++ b/src/ImageSharp/Formats/Gif/LzwEncoder.cs @@ -94,7 +94,7 @@ namespace ImageSharp.Formats private int freeEntry; /// - /// Block compression parameters -- after all codes are used up, + /// Block compression parameters -- after all codes are used up, /// and compression rate changes, start over. /// private bool clearFlag; @@ -179,7 +179,7 @@ namespace ImageSharp.Formats } /// - /// Add a character to the end of the current packet, and if it is 254 characters, + /// Add a character to the end of the current packet, and if it is 254 characters, /// flush the packet to disk. /// /// The character to add. diff --git a/src/ImageSharp/Formats/Gif/PackedField.cs b/src/ImageSharp/Formats/Gif/PackedField.cs index 8c5e59105..cabf4f5ab 100644 --- a/src/ImageSharp/Formats/Gif/PackedField.cs +++ b/src/ImageSharp/Formats/Gif/PackedField.cs @@ -48,7 +48,7 @@ namespace ImageSharp.Formats } /// - /// Returns a new with the bits in the packed fields to + /// Returns a new with the bits in the packed fields to /// the corresponding bits from the supplied byte. /// /// The value to pack. @@ -61,7 +61,7 @@ namespace ImageSharp.Formats } /// - /// Sets the specified bit within the packed fields to the supplied + /// Sets the specified bit within the packed fields to the supplied /// value. /// /// @@ -84,7 +84,7 @@ namespace ImageSharp.Formats } /// - /// Sets the specified bits within the packed fields to the supplied + /// Sets the specified bits within the packed fields to the supplied /// value. /// /// The zero-based index within the packed fields of the first bit to set. diff --git a/src/ImageSharp/Formats/Jpg/Components/Bits.cs b/src/ImageSharp/Formats/Jpg/Components/Bits.cs index 9c5ae63e6..68278e69b 100644 --- a/src/ImageSharp/Formats/Jpg/Components/Bits.cs +++ b/src/ImageSharp/Formats/Jpg/Components/Bits.cs @@ -18,7 +18,7 @@ namespace ImageSharp.Formats public uint Accumulator { get; set; } /// - /// Gets or sets the mask. + /// Gets or sets the mask. /// 0, with mask==0 when unreadbits==0.]]> /// public uint Mask { get; set; } diff --git a/src/ImageSharp/Formats/Jpg/Components/Huffman.cs b/src/ImageSharp/Formats/Jpg/Components/Huffman.cs index 9c076ca25..2c38cfd38 100644 --- a/src/ImageSharp/Formats/Jpg/Components/Huffman.cs +++ b/src/ImageSharp/Formats/Jpg/Components/Huffman.cs @@ -11,7 +11,7 @@ namespace ImageSharp.Formats internal class Huffman { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// The log-2 size of the Huffman decoder's look-up table. /// The maximum (inclusive) number of codes in a Huffman tree. diff --git a/src/ImageSharp/Formats/Jpg/Components/YCbCrImage.cs b/src/ImageSharp/Formats/Jpg/Components/YCbCrImage.cs index 61fc354e3..564da379b 100644 --- a/src/ImageSharp/Formats/Jpg/Components/YCbCrImage.cs +++ b/src/ImageSharp/Formats/Jpg/Components/YCbCrImage.cs @@ -6,7 +6,7 @@ namespace ImageSharp.Formats { /// - /// Represents an image made up of three color components (luminance, blue chroma, red chroma) + /// Represents an image made up of three color components (luminance, blue chroma, red chroma) /// internal class YCbCrImage { diff --git a/src/ImageSharp/Formats/Jpg/JpegConstants.cs b/src/ImageSharp/Formats/Jpg/JpegConstants.cs index 1d0d04317..3991cf3ea 100644 --- a/src/ImageSharp/Formats/Jpg/JpegConstants.cs +++ b/src/ImageSharp/Formats/Jpg/JpegConstants.cs @@ -94,7 +94,7 @@ namespace ImageSharp.Formats /// /// Start of Frame (baseline DCT) /// - /// Indicates that this is a baseline DCT-based JPEG, and specifies the width, height, number of components, + /// Indicates that this is a baseline DCT-based JPEG, and specifies the width, height, number of components, /// and component subsampling (e.g., 4:2:0). /// /// @@ -103,7 +103,7 @@ namespace ImageSharp.Formats /// /// Start Of Frame (Extended Sequential DCT) /// - /// Indicates that this is a progressive DCT-based JPEG, and specifies the width, height, number of components, + /// Indicates that this is a progressive DCT-based JPEG, and specifies the width, height, number of components, /// and component subsampling (e.g., 4:2:0). /// /// @@ -112,7 +112,7 @@ namespace ImageSharp.Formats /// /// Start Of Frame (progressive DCT) /// - /// Indicates that this is a progressive DCT-based JPEG, and specifies the width, height, number of components, + /// Indicates that this is a progressive DCT-based JPEG, and specifies the width, height, number of components, /// and component subsampling (e.g., 4:2:0). /// /// @@ -137,7 +137,7 @@ namespace ImageSharp.Formats /// /// Define Restart Interval /// - /// Specifies the interval between RSTn markers, in macroblocks. This marker is followed by two bytes + /// Specifies the interval between RSTn markers, in macroblocks. This marker is followed by two bytes /// indicating the fixed size so it can be treated like any other variable size segment. /// /// @@ -146,7 +146,7 @@ namespace ImageSharp.Formats /// /// Define First Restart /// - /// Inserted every r macroblocks, where r is the restart interval set by a DRI marker. + /// Inserted every r macroblocks, where r is the restart interval set by a DRI marker. /// Not used if there was no DRI marker. The low three bits of the marker code cycle in value from 0 to 7. /// /// @@ -155,7 +155,7 @@ namespace ImageSharp.Formats /// /// Define Eigth Restart /// - /// Inserted every r macroblocks, where r is the restart interval set by a DRI marker. + /// Inserted every r macroblocks, where r is the restart interval set by a DRI marker. /// Not used if there was no DRI marker. The low three bits of the marker code cycle in value from 0 to 7. /// /// @@ -164,8 +164,8 @@ namespace ImageSharp.Formats /// /// Start of Scan /// - /// Begins a top-to-bottom scan of the image. In baseline DCT JPEG images, there is generally a single scan. - /// Progressive DCT JPEG images usually contain multiple scans. This marker specifies which slice of data it + /// Begins a top-to-bottom scan of the image. In baseline DCT JPEG images, there is generally a single scan. + /// Progressive DCT JPEG images usually contain multiple scans. This marker specifies which slice of data it /// will contain, and is immediately followed by entropy-coded data. /// /// @@ -212,7 +212,7 @@ namespace ImageSharp.Formats internal static class Adobe { /// - /// The color transform is unknown.(RGB or CMYK) + /// The color transform is unknown.(RGB or CMYK) /// public const int ColorTransformUnknown = 0; diff --git a/src/ImageSharp/Formats/Jpg/JpegDecoderCore.cs b/src/ImageSharp/Formats/Jpg/JpegDecoderCore.cs index 6c4bd0caa..4d9c68485 100644 --- a/src/ImageSharp/Formats/Jpg/JpegDecoderCore.cs +++ b/src/ImageSharp/Formats/Jpg/JpegDecoderCore.cs @@ -679,7 +679,7 @@ namespace ImageSharp.Formats } /// - /// Fills up the bytes buffer from the underlying stream. + /// Fills up the bytes buffer from the underlying stream. /// It should only be called when there are no unread bytes in bytes. /// private void Fill() diff --git a/src/ImageSharp/Formats/Jpg/JpegEncoderCore.cs b/src/ImageSharp/Formats/Jpg/JpegEncoderCore.cs index acc65769a..b7259a181 100644 --- a/src/ImageSharp/Formats/Jpg/JpegEncoderCore.cs +++ b/src/ImageSharp/Formats/Jpg/JpegEncoderCore.cs @@ -112,7 +112,7 @@ namespace ImageSharp.Formats { 0, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0 }, - new byte[] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }), + new byte[] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }), // Chrominance AC. new HuffmanSpec( @@ -296,7 +296,7 @@ namespace ImageSharp.Formats /// /// Writes a block of pixel data using the given quantization table, - /// returning the post-quantized DC value of the DCT-transformed block. + /// returning the post-quantized DC value of the DCT-transformed block. /// The block is in natural (not zig-zag) order. /// /// The block to write. @@ -397,7 +397,7 @@ namespace ImageSharp.Formats 0x00, 0x08, // Length (high byte, low byte), must be 6 + 2 * (number of components in scan) 0x01, // Number of components in a scan, 1 0x01, // Component Id Y - 0x00, // DC/AC Huffman table + 0x00, // DC/AC Huffman table 0x00, // Ss - Start of spectral selection. 0x3f, // Se - End of spectral selection. 0x00 // Ah + Ah (Successive approximation bit position high + low) @@ -418,11 +418,11 @@ namespace ImageSharp.Formats 0x00, 0x0c, // Length (high byte, low byte), must be 6 + 2 * (number of components in scan) 0x03, // Number of components in a scan, 3 0x01, // Component Id Y - 0x00, // DC/AC Huffman table + 0x00, // DC/AC Huffman table 0x02, // Component Id Cb - 0x11, // DC/AC Huffman table + 0x11, // DC/AC Huffman table 0x03, // Component Id Cr - 0x11, // DC/AC Huffman table + 0x11, // DC/AC Huffman table 0x00, // Ss - Start of spectral selection. 0x3f, // Se - End of spectral selection. 0x00 // Ah + Ah (Successive approximation bit position high + low) @@ -759,7 +759,7 @@ namespace ImageSharp.Formats } /// - /// Encodes the image with subsampling. The Cb and Cr components are each subsampled + /// Encodes the image with subsampling. The Cb and Cr components are each subsampled /// at a factor of 2 both horizontally and vertically. /// /// The pixel accessor providing acces to the image pixels. diff --git a/src/ImageSharp/Formats/Jpg/JpegSubsample.cs b/src/ImageSharp/Formats/Jpg/JpegSubsample.cs index 14b0266ef..287323bdd 100644 --- a/src/ImageSharp/Formats/Jpg/JpegSubsample.cs +++ b/src/ImageSharp/Formats/Jpg/JpegSubsample.cs @@ -11,13 +11,13 @@ namespace ImageSharp.Formats public enum JpegSubsample { /// - /// High Quality - Each of the three Y'CbCr components have the same sample rate, + /// High Quality - Each of the three Y'CbCr components have the same sample rate, /// thus there is no chroma subsampling. /// Ratio444, /// - /// Medium Quality - The horizontal sampling is halved and the Cb and Cr channels are only + /// Medium Quality - The horizontal sampling is halved and the Cb and Cr channels are only /// sampled on each alternate line. /// Ratio420 diff --git a/src/ImageSharp/Formats/Png/Filters/AverageFilter.cs b/src/ImageSharp/Formats/Png/Filters/AverageFilter.cs index 69bd70545..97ded289c 100644 --- a/src/ImageSharp/Formats/Png/Filters/AverageFilter.cs +++ b/src/ImageSharp/Formats/Png/Filters/AverageFilter.cs @@ -8,7 +8,7 @@ namespace ImageSharp.Formats using System; /// - /// The Average filter uses the average of the two neighboring pixels (left and above) to predict + /// The Average filter uses the average of the two neighboring pixels (left and above) to predict /// the value of a pixel. /// /// diff --git a/src/ImageSharp/Formats/Png/Filters/FilterType.cs b/src/ImageSharp/Formats/Png/Filters/FilterType.cs index 18e59e002..0eddf08f2 100644 --- a/src/ImageSharp/Formats/Png/Filters/FilterType.cs +++ b/src/ImageSharp/Formats/Png/Filters/FilterType.cs @@ -12,32 +12,32 @@ namespace ImageSharp.Formats internal enum FilterType { /// - /// With the None filter, the scanline is transmitted unmodified; it is only necessary to + /// With the None filter, the scanline is transmitted unmodified; it is only necessary to /// insert a filter type byte before the data. /// None = 0, /// - /// The Sub filter transmits the difference between each byte and the value of the corresponding + /// The Sub filter transmits the difference between each byte and the value of the corresponding /// byte of the prior pixel. /// Sub = 1, /// - /// The Up filter is just like the Sub filter except that the pixel immediately above the current + /// The Up filter is just like the Sub filter except that the pixel immediately above the current /// pixel, rather than just to its left, is used as the predictor. /// Up = 2, /// - /// The Average filter uses the average of the two neighboring pixels (left and above) to + /// The Average filter uses the average of the two neighboring pixels (left and above) to /// predict the value of a pixel. /// Average = 3, /// - /// The Paeth filter computes a simple linear function of the three neighboring pixels (left, above, upper left), - /// then chooses as predictor the neighboring pixel closest to the computed value. + /// The Paeth filter computes a simple linear function of the three neighboring pixels (left, above, upper left), + /// then chooses as predictor the neighboring pixel closest to the computed value. /// This technique is due to Alan W. Paeth /// Paeth = 4 diff --git a/src/ImageSharp/Formats/Png/Filters/NoneFilter.cs b/src/ImageSharp/Formats/Png/Filters/NoneFilter.cs index cc69a5b7d..2ac590648 100644 --- a/src/ImageSharp/Formats/Png/Filters/NoneFilter.cs +++ b/src/ImageSharp/Formats/Png/Filters/NoneFilter.cs @@ -6,7 +6,7 @@ namespace ImageSharp.Formats { /// - /// The None filter, the scanline is transmitted unmodified; it is only necessary to + /// The None filter, the scanline is transmitted unmodified; it is only necessary to /// insert a filter type byte before the data. /// /// diff --git a/src/ImageSharp/Formats/Png/Filters/PaethFilter.cs b/src/ImageSharp/Formats/Png/Filters/PaethFilter.cs index 790c5f76b..1234cb6ef 100644 --- a/src/ImageSharp/Formats/Png/Filters/PaethFilter.cs +++ b/src/ImageSharp/Formats/Png/Filters/PaethFilter.cs @@ -9,7 +9,7 @@ namespace ImageSharp.Formats /// /// The Paeth filter computes a simple linear function of the three neighboring pixels (left, above, upper left), - /// then chooses as predictor the neighboring pixel closest to the computed value. + /// then chooses as predictor the neighboring pixel closest to the computed value. /// This technique is due to Alan W. Paeth. /// /// diff --git a/src/ImageSharp/Formats/Png/Filters/SubFilter.cs b/src/ImageSharp/Formats/Png/Filters/SubFilter.cs index 0be0f78ad..eb5bd9bfd 100644 --- a/src/ImageSharp/Formats/Png/Filters/SubFilter.cs +++ b/src/ImageSharp/Formats/Png/Filters/SubFilter.cs @@ -6,7 +6,7 @@ namespace ImageSharp.Formats { /// - /// The Sub filter transmits the difference between each byte and the value of the corresponding byte + /// The Sub filter transmits the difference between each byte and the value of the corresponding byte /// of the prior pixel. /// /// diff --git a/src/ImageSharp/Formats/Png/Filters/UpFilter.cs b/src/ImageSharp/Formats/Png/Filters/UpFilter.cs index 8417cad83..ebb5e3b54 100644 --- a/src/ImageSharp/Formats/Png/Filters/UpFilter.cs +++ b/src/ImageSharp/Formats/Png/Filters/UpFilter.cs @@ -6,7 +6,7 @@ namespace ImageSharp.Formats { /// - /// The Up filter is just like the Sub filter except that the pixel immediately above the current pixel, + /// The Up filter is just like the Sub filter except that the pixel immediately above the current pixel, /// rather than just to its left, is used as the predictor. /// /// diff --git a/src/ImageSharp/Formats/Png/PngChunk.cs b/src/ImageSharp/Formats/Png/PngChunk.cs index 96ce4c297..3d769057c 100644 --- a/src/ImageSharp/Formats/Png/PngChunk.cs +++ b/src/ImageSharp/Formats/Png/PngChunk.cs @@ -12,8 +12,8 @@ namespace ImageSharp.Formats { /// /// Gets or sets the length. - /// An unsigned integer giving the number of bytes in the chunk's - /// data field. The length counts only the data field, not itself, + /// An unsigned integer giving the number of bytes in the chunk's + /// data field. The length counts only the data field, not itself, /// the chunk type code, or the CRC. Zero is a valid length /// public int Length { get; set; } @@ -24,14 +24,14 @@ namespace ImageSharp.Formats public string Type { get; set; } /// - /// Gets or sets the data bytes appropriate to the chunk type, if any. - /// This field can be of zero length. + /// Gets or sets the data bytes appropriate to the chunk type, if any. + /// This field can be of zero length. /// public byte[] Data { get; set; } /// - /// Gets or sets a CRC (Cyclic Redundancy Check) calculated on the preceding bytes in the chunk, - /// including the chunk type code and chunk data fields, but not including the length field. + /// Gets or sets a CRC (Cyclic Redundancy Check) calculated on the preceding bytes in the chunk, + /// including the chunk type code and chunk data fields, but not including the length field. /// The CRC is always present, even for chunks containing no data /// public uint Crc { get; set; } diff --git a/src/ImageSharp/Formats/Png/PngChunkTypes.cs b/src/ImageSharp/Formats/Png/PngChunkTypes.cs index 753dad8b2..72486b50d 100644 --- a/src/ImageSharp/Formats/Png/PngChunkTypes.cs +++ b/src/ImageSharp/Formats/Png/PngChunkTypes.cs @@ -11,7 +11,7 @@ namespace ImageSharp.Formats internal static class PngChunkTypes { /// - /// The first chunk in a png file. Can only exists once. Contains + /// The first chunk in a png file. Can only exists once. Contains /// common information like the width and the height of the image or /// the used compression method. /// @@ -30,32 +30,32 @@ namespace ImageSharp.Formats public const string Data = "IDAT"; /// - /// This chunk must appear last. It marks the end of the PNG data stream. - /// The chunk's data field is empty. + /// This chunk must appear last. It marks the end of the PNG data stream. + /// The chunk's data field is empty. /// public const string End = "IEND"; /// - /// This chunk specifies that the image uses simple transparency: - /// either alpha values associated with palette entries (for indexed-color images) - /// or a single transparent color (for grayscale and true color images). + /// This chunk specifies that the image uses simple transparency: + /// either alpha values associated with palette entries (for indexed-color images) + /// or a single transparent color (for grayscale and true color images). /// public const string PaletteAlpha = "tRNS"; /// - /// Textual information that the encoder wishes to record with the image can be stored in + /// Textual information that the encoder wishes to record with the image can be stored in /// tEXt chunks. Each tEXt chunk contains a keyword and a text string. /// public const string Text = "tEXt"; /// - /// This chunk specifies the relationship between the image samples and the desired + /// This chunk specifies the relationship between the image samples and the desired /// display output intensity. /// public const string Gamma = "gAMA"; /// - /// The pHYs chunk specifies the intended pixel size or aspect ratio for display of the image. + /// The pHYs chunk specifies the intended pixel size or aspect ratio for display of the image. /// public const string Physical = "pHYs"; } diff --git a/src/ImageSharp/Formats/Png/PngEncoder.cs b/src/ImageSharp/Formats/Png/PngEncoder.cs index b0274f671..af4fe95d6 100644 --- a/src/ImageSharp/Formats/Png/PngEncoder.cs +++ b/src/ImageSharp/Formats/Png/PngEncoder.cs @@ -32,7 +32,7 @@ namespace ImageSharp.Formats public string Extension => "png"; /// - /// Gets or sets the compression level 1-9. + /// Gets or sets the compression level 1-9. /// Defaults to 6. /// public int CompressionLevel { get; set; } = 6; diff --git a/src/ImageSharp/Formats/Png/PngEncoderCore.cs b/src/ImageSharp/Formats/Png/PngEncoderCore.cs index 13aa1f4b1..059d7d0e0 100644 --- a/src/ImageSharp/Formats/Png/PngEncoderCore.cs +++ b/src/ImageSharp/Formats/Png/PngEncoderCore.cs @@ -59,7 +59,7 @@ namespace ImageSharp.Formats public PngColorType PngColorType { get; set; } /// - /// Gets or sets the compression level 1-9. + /// Gets or sets the compression level 1-9. /// Defaults to 6. /// public int CompressionLevel { get; set; } = 6; diff --git a/src/ImageSharp/Formats/Png/PngHeader.cs b/src/ImageSharp/Formats/Png/PngHeader.cs index 8cfd9b52c..3121969b6 100644 --- a/src/ImageSharp/Formats/Png/PngHeader.cs +++ b/src/ImageSharp/Formats/Png/PngHeader.cs @@ -22,39 +22,39 @@ namespace ImageSharp.Formats /// /// Gets or sets the bit depth. - /// Bit depth is a single-byte integer giving the number of bits per sample - /// or per palette index (not per pixel). Valid values are 1, 2, 4, 8, and 16, - /// although not all values are allowed for all color types. + /// Bit depth is a single-byte integer giving the number of bits per sample + /// or per palette index (not per pixel). Valid values are 1, 2, 4, 8, and 16, + /// although not all values are allowed for all color types. /// public byte BitDepth { get; set; } /// /// Gets or sets the color type. - /// Color type is a integer that describes the interpretation of the - /// image data. Color type codes represent sums of the following values: + /// Color type is a integer that describes the interpretation of the + /// image data. Color type codes represent sums of the following values: /// 1 (palette used), 2 (color used), and 4 (alpha channel used). /// public byte ColorType { get; set; } /// /// Gets or sets the compression method. - /// Indicates the method used to compress the image data. At present, - /// only compression method 0 (deflate/inflate compression with a sliding + /// Indicates the method used to compress the image data. At present, + /// only compression method 0 (deflate/inflate compression with a sliding /// window of at most 32768 bytes) is defined. /// public byte CompressionMethod { get; set; } /// /// Gets or sets the preprocessing method. - /// Indicates the preprocessing method applied to the image - /// data before compression. At present, only filter method 0 + /// Indicates the preprocessing method applied to the image + /// data before compression. At present, only filter method 0 /// (adaptive filtering with five basic filter types) is defined. /// public byte FilterMethod { get; set; } /// /// Gets or sets the transmission order. - /// Indicates the transmission order of the image data. + /// Indicates the transmission order of the image data. /// Two values are currently defined: 0 (no interlace) or 1 (Adam7 interlace). /// public byte InterlaceMethod { get; set; } diff --git a/src/ImageSharp/Formats/Png/Zlib/Adler32.cs b/src/ImageSharp/Formats/Png/Zlib/Adler32.cs index ab738460b..5f92cc9e0 100644 --- a/src/ImageSharp/Formats/Png/Zlib/Adler32.cs +++ b/src/ImageSharp/Formats/Png/Zlib/Adler32.cs @@ -67,7 +67,7 @@ namespace ImageSharp.Formats private uint checksum; /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The checksum starts off with a value of 1. /// public Adler32() diff --git a/src/ImageSharp/Formats/Png/Zlib/ZlibDeflateStream.cs b/src/ImageSharp/Formats/Png/Zlib/ZlibDeflateStream.cs index 9245cfe83..29d1dad9b 100644 --- a/src/ImageSharp/Formats/Png/Zlib/ZlibDeflateStream.cs +++ b/src/ImageSharp/Formats/Png/Zlib/ZlibDeflateStream.cs @@ -20,7 +20,7 @@ namespace ImageSharp.Formats private readonly Stream rawStream; /// - /// Computes the checksum for the data stream. + /// Computes the checksum for the data stream. /// private readonly Adler32 adler32 = new Adler32(); @@ -51,7 +51,7 @@ namespace ImageSharp.Formats // Write the zlib header : http://tools.ietf.org/html/rfc1950 // CMF(Compression Method and flags) - // This byte is divided into a 4 - bit compression method and a + // This byte is divided into a 4 - bit compression method and a // 4-bit information field depending on the compression method. // bits 0 to 3 CM Compression method // bits 4 to 7 CINFO Compression info diff --git a/src/ImageSharp/Formats/Png/Zlib/ZlibInflateStream.cs b/src/ImageSharp/Formats/Png/Zlib/ZlibInflateStream.cs index d62983698..227a22d3b 100644 --- a/src/ImageSharp/Formats/Png/Zlib/ZlibInflateStream.cs +++ b/src/ImageSharp/Formats/Png/Zlib/ZlibInflateStream.cs @@ -50,7 +50,7 @@ namespace ImageSharp.Formats // Read the zlib header : http://tools.ietf.org/html/rfc1950 // CMF(Compression Method and flags) - // This byte is divided into a 4 - bit compression method and a + // This byte is divided into a 4 - bit compression method and a // 4-bit information field depending on the compression method. // bits 0 to 3 CM Compression method // bits 4 to 7 CINFO Compression info diff --git a/src/ImageSharp/IO/BigEndianBitConverter.cs b/src/ImageSharp/IO/BigEndianBitConverter.cs index c071ec0c2..084102728 100644 --- a/src/ImageSharp/IO/BigEndianBitConverter.cs +++ b/src/ImageSharp/IO/BigEndianBitConverter.cs @@ -21,7 +21,7 @@ namespace ImageSharp.IO /// public override bool IsLittleEndian() => false; - + /// protected internal override void CopyBytesImpl(long value, int bytes, byte[] buffer, int index) { diff --git a/src/ImageSharp/IO/EndianBinaryReader.cs b/src/ImageSharp/IO/EndianBinaryReader.cs index c635fedb6..3b12401b6 100644 --- a/src/ImageSharp/IO/EndianBinaryReader.cs +++ b/src/ImageSharp/IO/EndianBinaryReader.cs @@ -523,7 +523,7 @@ namespace ImageSharp.IO /// /// Reads a length-prefixed string from the stream, using the encoding for this reader. - /// A 7-bit encoded integer is first read, which specifies the number of bytes + /// A 7-bit encoded integer is first read, which specifies the number of bytes /// to read from the stream. These bytes are then converted into a string with /// the encoding for this reader. /// diff --git a/src/ImageSharp/IO/EndianBinaryWriter.cs b/src/ImageSharp/IO/EndianBinaryWriter.cs index 03fe29de4..b10ae79b4 100644 --- a/src/ImageSharp/IO/EndianBinaryWriter.cs +++ b/src/ImageSharp/IO/EndianBinaryWriter.cs @@ -31,7 +31,7 @@ namespace ImageSharp.IO private bool disposed; /// - /// Initializes a new instance of the class + /// Initializes a new instance of the class /// with the given bit converter, writing to the given stream, using UTF-8 encoding. /// /// Converter to use when writing data diff --git a/src/ImageSharp/IO/EndianBitConverter.cs b/src/ImageSharp/IO/EndianBitConverter.cs index 2ecf202d1..d7a8d91fa 100644 --- a/src/ImageSharp/IO/EndianBitConverter.cs +++ b/src/ImageSharp/IO/EndianBitConverter.cs @@ -13,7 +13,7 @@ namespace ImageSharp.IO /// Equivalent of , but with either endianness. /// /// Adapted from Miscellaneous Utility Library - /// This product includes software developed by Jon Skeet and Marc Gravell. Contact , or see + /// This product includes software developed by Jon Skeet and Marc Gravell. Contact , or see /// . /// /// @@ -28,7 +28,7 @@ namespace ImageSharp.IO /// /// /// Different computer architectures store data using different byte orders. "Big-endian" - /// means the most significant byte is on the left end of a word. "Little-endian" means the + /// means the most significant byte is on the left end of a word. "Little-endian" means the /// most significant byte is on the right end of a word. /// /// true if this converter is little-endian, false otherwise. @@ -66,7 +66,7 @@ namespace ImageSharp.IO #region Double/primitive conversions /// - /// Converts the specified double-precision floating point number to a + /// Converts the specified double-precision floating point number to a /// 64-bit signed integer. Note: the endianness of this converter does not /// affect the returned value. /// @@ -78,7 +78,7 @@ namespace ImageSharp.IO } /// - /// Converts the specified 64-bit signed integer to a double-precision + /// Converts the specified 64-bit signed integer to a double-precision /// floating point number. Note: the endianness of this converter does not /// affect the returned value. /// @@ -90,7 +90,7 @@ namespace ImageSharp.IO } /// - /// Converts the specified single-precision floating point number to a + /// Converts the specified single-precision floating point number to a /// 32-bit signed integer. Note: the endianness of this converter does not /// affect the returned value. /// @@ -102,7 +102,7 @@ namespace ImageSharp.IO } /// - /// Converts the specified 32-bit signed integer to a single-precision floating point + /// Converts the specified 32-bit signed integer to a single-precision floating point /// number. Note: the endianness of this converter does not /// affect the returned value. /// @@ -139,7 +139,7 @@ namespace ImageSharp.IO } /// - /// Returns a double-precision floating point number converted from eight bytes + /// Returns a double-precision floating point number converted from eight bytes /// at a specified position in a byte array. /// /// An array of bytes. @@ -151,7 +151,7 @@ namespace ImageSharp.IO } /// - /// Returns a single-precision floating point number converted from four bytes + /// Returns a single-precision floating point number converted from four bytes /// at a specified position in a byte array. /// /// An array of bytes. @@ -285,7 +285,7 @@ namespace ImageSharp.IO /// An array of bytes. /// All the elements of value are converted. /// - /// A String of hexadecimal pairs separated by hyphens, where each pair + /// A String of hexadecimal pairs separated by hyphens, where each pair /// represents the corresponding element in value; for example, "7F-2C-4A". /// public static string ToString(byte[] value) @@ -300,7 +300,7 @@ namespace ImageSharp.IO /// The starting position within value. /// The elements from array position startIndex to the end of the array are converted. /// - /// A String of hexadecimal pairs separated by hyphens, where each pair + /// A String of hexadecimal pairs separated by hyphens, where each pair /// represents the corresponding element in value; for example, "7F-2C-4A". /// public static string ToString(byte[] value, int startIndex) @@ -316,7 +316,7 @@ namespace ImageSharp.IO /// The number of bytes to convert. /// The length elements from array position startIndex are converted. /// - /// A String of hexadecimal pairs separated by hyphens, where each pair + /// A String of hexadecimal pairs separated by hyphens, where each pair /// represents the corresponding element in value; for example, "7F-2C-4A". /// public static string ToString(byte[] value, int startIndex, int length) @@ -327,7 +327,7 @@ namespace ImageSharp.IO #region Decimal conversions /// - /// Returns a decimal value converted from sixteen bytes + /// Returns a decimal value converted from sixteen bytes /// at a specified position in a byte array. /// /// An array of bytes. @@ -688,7 +688,7 @@ namespace ImageSharp.IO private readonly float f; /// - /// Initializes a new instance of the struct. + /// Initializes a new instance of the struct. /// /// The integer value of the new instance. internal Int32SingleUnion(int i) @@ -698,7 +698,7 @@ namespace ImageSharp.IO } /// - /// Initializes a new instance of the struct. + /// Initializes a new instance of the struct. /// /// /// The floating point value of the new instance. diff --git a/src/ImageSharp/IO/LittleEndianBitConverter.cs b/src/ImageSharp/IO/LittleEndianBitConverter.cs index 89e2d8107..63ebe18a3 100644 --- a/src/ImageSharp/IO/LittleEndianBitConverter.cs +++ b/src/ImageSharp/IO/LittleEndianBitConverter.cs @@ -10,7 +10,7 @@ namespace ImageSharp.IO /// byte arrays. /// /// Adapted from Miscellaneous Utility Library - /// This product includes software developed by Jon Skeet and Marc Gravell. Contact , or see + /// This product includes software developed by Jon Skeet and Marc Gravell. Contact , or see /// . /// /// diff --git a/src/ImageSharp/Image/IImageBase.cs b/src/ImageSharp/Image/IImageBase.cs index 82ae19914..2e4c58f08 100644 --- a/src/ImageSharp/Image/IImageBase.cs +++ b/src/ImageSharp/Image/IImageBase.cs @@ -34,7 +34,7 @@ namespace ImageSharp void SetPixels(int width, int height, TColor[] pixels); /// - /// Sets the pixel array of the image to the given value, creating a copy of + /// Sets the pixel array of the image to the given value, creating a copy of /// the original pixels. /// /// The new width of the image. Must be greater than zero. diff --git a/src/ImageSharp/Image/Image.cs b/src/ImageSharp/Image/Image.cs index 5584dac80..337f38fcf 100644 --- a/src/ImageSharp/Image/Image.cs +++ b/src/ImageSharp/Image/Image.cs @@ -241,7 +241,7 @@ namespace ImageSharp } /// - /// Returns a Base64 encoded string from the given image. + /// Returns a Base64 encoded string from the given image. /// /// data:image/gif;base64,R0lGODlhAQABAIABAEdJRgAAACwAAAAAAQABAAACAkQBAA== /// The diff --git a/src/ImageSharp/Image/ImageBase.cs b/src/ImageSharp/Image/ImageBase.cs index c5b615869..1003e4048 100644 --- a/src/ImageSharp/Image/ImageBase.cs +++ b/src/ImageSharp/Image/ImageBase.cs @@ -10,7 +10,7 @@ namespace ImageSharp using System.Diagnostics; /// - /// The base class of all images. Encapsulates the basic properties and methods required to manipulate + /// The base class of all images. Encapsulates the basic properties and methods required to manipulate /// images in different pixel formats. /// /// The pixel format. diff --git a/src/ImageSharp/Image/ImageFrame.cs b/src/ImageSharp/Image/ImageFrame.cs index b8f365fcd..97140a384 100644 --- a/src/ImageSharp/Image/ImageFrame.cs +++ b/src/ImageSharp/Image/ImageFrame.cs @@ -15,14 +15,14 @@ namespace ImageSharp where TPacked : struct { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// public ImageFrame() { } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// The frame to create the frame from. diff --git a/src/ImageSharp/Image/ImageIOExtensions.cs b/src/ImageSharp/Image/ImageIOExtensions.cs index 094ab3e32..bb0369d8a 100644 --- a/src/ImageSharp/Image/ImageIOExtensions.cs +++ b/src/ImageSharp/Image/ImageIOExtensions.cs @@ -37,7 +37,7 @@ namespace ImageSharp /// The packed format. uint, long, float. /// The image this method extends. /// The stream to save the image to. - /// The quality to save the image to representing the number of colors. + /// The quality to save the image to representing the number of colors. /// Anything equal to 256 and below will cause the encoder to save the image in an indexed format. /// /// Thrown if the stream is null. diff --git a/src/ImageSharp/Image/PixelAccessor.cs b/src/ImageSharp/Image/PixelAccessor.cs index 16c03f48e..5514aa4ef 100644 --- a/src/ImageSharp/Image/PixelAccessor.cs +++ b/src/ImageSharp/Image/PixelAccessor.cs @@ -64,7 +64,7 @@ namespace ImageSharp } /// - /// Finalizes an instance of the class. + /// Finalizes an instance of the class. /// ~PixelAccessor() { @@ -159,7 +159,7 @@ namespace ImageSharp // This object will be cleaned up by the Dispose method. // Therefore, you should call GC.SuppressFinalize to - // take this object off the finalization queue + // take this object off the finalization queue // and prevent finalization code for this object // from executing a second time. GC.SuppressFinalize(this); diff --git a/src/ImageSharp/Numerics/LongRational.cs b/src/ImageSharp/Numerics/LongRational.cs index c8094a1ff..f56abc289 100644 --- a/src/ImageSharp/Numerics/LongRational.cs +++ b/src/ImageSharp/Numerics/LongRational.cs @@ -18,10 +18,10 @@ namespace ImageSharp internal struct LongRational : IEquatable { /// - /// Initializes a new instance of the struct. + /// Initializes a new instance of the struct. /// /// - /// The number above the line in a vulgar fraction showing how many of the parts + /// The number above the line in a vulgar fraction showing how many of the parts /// indicated by the denominator are taken. /// /// @@ -33,10 +33,10 @@ namespace ImageSharp } /// - /// Initializes a new instance of the struct. + /// Initializes a new instance of the struct. /// /// - /// The number above the line in a vulgar fraction showing how many of the parts + /// The number above the line in a vulgar fraction showing how many of the parts /// indicated by the denominator are taken. /// /// @@ -58,7 +58,7 @@ namespace ImageSharp } /// - /// Initializes a new instance of the struct. + /// Initializes a new instance of the struct. /// /// The to create the instance from. /// Whether to use the best possible precision when parsing the value. @@ -134,7 +134,7 @@ namespace ImageSharp } /// - /// Gets a value indicating whether this instance is indeterminate. + /// Gets a value indicating whether this instance is indeterminate. /// public bool IsIndeterminate { @@ -155,7 +155,7 @@ namespace ImageSharp public bool IsInteger => this.Denominator == 1; /// - /// Gets a value indicating whether this instance is equal to negative infinity (-1, 0) + /// Gets a value indicating whether this instance is equal to negative infinity (-1, 0) /// public bool IsNegativeInfinity { @@ -171,7 +171,7 @@ namespace ImageSharp } /// - /// Gets a value indicating whether this instance is equal to positive infinity (1, 0) + /// Gets a value indicating whether this instance is equal to positive infinity (1, 0) /// public bool IsPositiveInfinity { @@ -236,11 +236,11 @@ namespace ImageSharp } /// - /// Converts the numeric value of this instance to its equivalent string representation using + /// Converts the numeric value of this instance to its equivalent string representation using /// the specified culture-specific format information. /// /// - /// An object that supplies culture-specific formatting information. + /// An object that supplies culture-specific formatting information. /// /// The public string ToString(IFormatProvider provider) diff --git a/src/ImageSharp/Numerics/Rational.cs b/src/ImageSharp/Numerics/Rational.cs index c1377a4e1..d219a5469 100644 --- a/src/ImageSharp/Numerics/Rational.cs +++ b/src/ImageSharp/Numerics/Rational.cs @@ -173,11 +173,11 @@ namespace ImageSharp } /// - /// Converts the numeric value of this instance to its equivalent string representation using + /// Converts the numeric value of this instance to its equivalent string representation using /// the specified culture-specific format information. /// /// - /// An object that supplies culture-specific formatting information. + /// An object that supplies culture-specific formatting information. /// /// The public string ToString(IFormatProvider provider) diff --git a/src/ImageSharp/Numerics/SignedRational.cs b/src/ImageSharp/Numerics/SignedRational.cs index d94f48cde..bd2213dce 100644 --- a/src/ImageSharp/Numerics/SignedRational.cs +++ b/src/ImageSharp/Numerics/SignedRational.cs @@ -173,11 +173,11 @@ namespace ImageSharp } /// - /// Converts the numeric value of this instance to its equivalent string representation using + /// Converts the numeric value of this instance to its equivalent string representation using /// the specified culture-specific format information. /// /// - /// An object that supplies culture-specific formatting information. + /// An object that supplies culture-specific formatting information. /// /// The public string ToString(IFormatProvider provider) diff --git a/src/ImageSharp/Properties/AssemblyInfo.cs b/src/ImageSharp/Properties/AssemblyInfo.cs index fd8e0349b..ec405e1d0 100644 --- a/src/ImageSharp/Properties/AssemblyInfo.cs +++ b/src/ImageSharp/Properties/AssemblyInfo.cs @@ -7,7 +7,7 @@ using System.Reflection; using System.Resources; using System.Runtime.CompilerServices; -// General Information about an assembly is controlled through the following +// General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("ImageSharp")] @@ -23,11 +23,11 @@ using System.Runtime.CompilerServices; // Version information for an assembly consists of the following four values: // // Major Version -// Minor Version +// Minor Version // Build Number // Revision // -// You can specify all the values or you can default the Build and Revision Numbers +// You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] diff --git a/src/ImageSharp/Quantizers/Palette/PaletteQuantizer.cs b/src/ImageSharp/Quantizers/Palette/PaletteQuantizer.cs index 45491610b..73b7f1af2 100644 --- a/src/ImageSharp/Quantizers/Palette/PaletteQuantizer.cs +++ b/src/ImageSharp/Quantizers/Palette/PaletteQuantizer.cs @@ -34,7 +34,7 @@ namespace ImageSharp.Quantizers /// Initializes a new instance of the class. /// /// - /// The color palette. If none is given this will default to the web safe colors defined + /// The color palette. If none is given this will default to the web safe colors defined /// in the CSS Color Module Level 4. /// public PaletteQuantizer(TColor[] palette = null) diff --git a/src/ImageSharp/Samplers/Options/ResizeHelper.cs b/src/ImageSharp/Samplers/Options/ResizeHelper.cs index 06c28c9b1..758594a08 100644 --- a/src/ImageSharp/Samplers/Options/ResizeHelper.cs +++ b/src/ImageSharp/Samplers/Options/ResizeHelper.cs @@ -9,7 +9,7 @@ namespace ImageSharp using System.Linq; /// - /// Provides methods to help calculate the target rectangle when resizing using the + /// Provides methods to help calculate the target rectangle when resizing using the /// enumeration. /// internal static class ResizeHelper @@ -283,7 +283,7 @@ namespace ImageSharp int boxPadHeight = height > 0 ? height : Convert.ToInt32(sourceHeight * percentWidth); int boxPadWidth = width > 0 ? width : Convert.ToInt32(sourceWidth * percentHeight); - // Only calculate if upscaling. + // Only calculate if upscaling. if (sourceWidth < boxPadWidth && sourceHeight < boxPadHeight) { int destinationX; @@ -336,7 +336,7 @@ namespace ImageSharp return new Rectangle(destinationX, destinationY, destinationWidth, destinationHeight); } - // Switch to pad mode to downscale and calculate from there. + // Switch to pad mode to downscale and calculate from there. return CalculatePadRectangle(source, options); } diff --git a/src/ImageSharp/Samplers/Options/ResizeMode.cs b/src/ImageSharp/Samplers/Options/ResizeMode.cs index 20ce1a723..7a1cc3c94 100644 --- a/src/ImageSharp/Samplers/Options/ResizeMode.cs +++ b/src/ImageSharp/Samplers/Options/ResizeMode.cs @@ -22,7 +22,7 @@ namespace ImageSharp Pad, /// - /// Pads the image to fit the bound of the container without resizing the + /// Pads the image to fit the bound of the container without resizing the /// original source. /// When downscaling, performs the same functionality as /// @@ -30,13 +30,13 @@ namespace ImageSharp /// /// Constrains the resized image to fit the bounds of its container maintaining - /// the original aspect ratio. + /// the original aspect ratio. /// Max, /// /// Resizes the image until the shortest side reaches the set given dimension. - /// Upscaling is disabled in this mode and the original image will be returned + /// Upscaling is disabled in this mode and the original image will be returned /// if attempted. /// Min, diff --git a/src/ImageSharp/Samplers/Processors/CompandingResizeProcessor.cs b/src/ImageSharp/Samplers/Processors/CompandingResizeProcessor.cs index 29171d42f..2e7a8ec9a 100644 --- a/src/ImageSharp/Samplers/Processors/CompandingResizeProcessor.cs +++ b/src/ImageSharp/Samplers/Processors/CompandingResizeProcessor.cs @@ -10,7 +10,7 @@ namespace ImageSharp.Processors using System.Threading.Tasks; /// - /// Provides methods that allow the resizing of images using various algorithms. + /// Provides methods that allow the resizing of images using various algorithms. /// This version will expand and compress the image to and from a linear color space during processing. /// /// The pixel format. @@ -88,7 +88,7 @@ namespace ImageSharp.Processors } // Interpolate the image using the calculated weights. - // A 2-pass 1D algorithm appears to be faster than splitting a 1-pass 2D algorithm + // A 2-pass 1D algorithm appears to be faster than splitting a 1-pass 2D algorithm // First process the columns. Since we are not using multiple threads startY and endY // are the upper and lower bounds of the source rectangle. Image firstPass = new Image(target.Width, source.Height); diff --git a/src/ImageSharp/Samplers/Processors/Convolution/EdgeDetection/EdgeDetector2DFilter.cs b/src/ImageSharp/Samplers/Processors/Convolution/EdgeDetection/EdgeDetector2DFilter.cs index e973e411a..acd8a29ca 100644 --- a/src/ImageSharp/Samplers/Processors/Convolution/EdgeDetection/EdgeDetector2DFilter.cs +++ b/src/ImageSharp/Samplers/Processors/Convolution/EdgeDetection/EdgeDetector2DFilter.cs @@ -31,7 +31,7 @@ namespace ImageSharp.Processors /// public override void Apply(ImageBase target, ImageBase source, Rectangle targetRectangle, Rectangle sourceRectangle, int startY, int endY) { - // TODO: Figure out a way to pass event handlers to child classes. + // TODO: Figure out a way to pass event handlers to child classes. new Convolution2DFilter(this.KernelX, this.KernelY).Apply(target, source, targetRectangle, sourceRectangle, startY, endY); } diff --git a/src/ImageSharp/Samplers/Processors/Convolution/GuassianBlurProcessor.cs b/src/ImageSharp/Samplers/Processors/Convolution/GuassianBlurProcessor.cs index 2e0000324..856239385 100644 --- a/src/ImageSharp/Samplers/Processors/Convolution/GuassianBlurProcessor.cs +++ b/src/ImageSharp/Samplers/Processors/Convolution/GuassianBlurProcessor.cs @@ -101,7 +101,7 @@ namespace ImageSharp.Processors { kernel[0] = new float[size]; } - + float sum = 0.0f; float midpoint = (size - 1) / 2f; diff --git a/src/ImageSharp/Samplers/Processors/ResizeProcessor.cs b/src/ImageSharp/Samplers/Processors/ResizeProcessor.cs index 1dd630b45..82e949148 100644 --- a/src/ImageSharp/Samplers/Processors/ResizeProcessor.cs +++ b/src/ImageSharp/Samplers/Processors/ResizeProcessor.cs @@ -87,7 +87,7 @@ namespace ImageSharp.Processors } // Interpolate the image using the calculated weights. - // A 2-pass 1D algorithm appears to be faster than splitting a 1-pass 2D algorithm + // A 2-pass 1D algorithm appears to be faster than splitting a 1-pass 2D algorithm // First process the columns. Since we are not using multiple threads startY and endY // are the upper and lower bounds of the source rectangle. Image firstPass = new Image(target.Width, source.Height); diff --git a/src/ImageSharp/Samplers/Resamplers/CatmullRomResampler.cs b/src/ImageSharp/Samplers/Resamplers/CatmullRomResampler.cs index 8b746cb8f..7751aa08b 100644 --- a/src/ImageSharp/Samplers/Resamplers/CatmullRomResampler.cs +++ b/src/ImageSharp/Samplers/Resamplers/CatmullRomResampler.cs @@ -7,7 +7,7 @@ namespace ImageSharp { /// /// The Catmull-Rom filter is a well known standard Cubic Filter often used as a interpolation function. - /// This filter produces a reasonably sharp edge, but without a the pronounced gradient change on large + /// This filter produces a reasonably sharp edge, but without a the pronounced gradient change on large /// scale image enlargements that a 'Lagrange' filter can produce. /// /// diff --git a/src/ImageSharp/Samplers/Resamplers/HermiteResampler.cs b/src/ImageSharp/Samplers/Resamplers/HermiteResampler.cs index a11724351..9af35e8e8 100644 --- a/src/ImageSharp/Samplers/Resamplers/HermiteResampler.cs +++ b/src/ImageSharp/Samplers/Resamplers/HermiteResampler.cs @@ -6,7 +6,7 @@ namespace ImageSharp.Processors { /// - /// The Hermite filter is type of smoothed triangular interpolation Filter, + /// The Hermite filter is type of smoothed triangular interpolation Filter, /// This filter rounds off strong edges while preserving flat 'color levels' in the original image. /// /// diff --git a/src/ImageSharp/Samplers/Resamplers/TriangleResampler.cs b/src/ImageSharp/Samplers/Resamplers/TriangleResampler.cs index afdb5bbc9..c53d5a146 100644 --- a/src/ImageSharp/Samplers/Resamplers/TriangleResampler.cs +++ b/src/ImageSharp/Samplers/Resamplers/TriangleResampler.cs @@ -7,8 +7,8 @@ namespace ImageSharp { /// /// The function implements the triangle (bilinear) algorithm. - /// Bilinear interpolation can be used where perfect image transformation with pixel matching is impossible, - /// so that one can calculate and assign appropriate intensity values to pixels. + /// Bilinear interpolation can be used where perfect image transformation with pixel matching is impossible, + /// so that one can calculate and assign appropriate intensity values to pixels. /// public class TriangleResampler : IResampler {