Browse Source

Removed trailing whitespace.

af/merge-core
dirk 9 years ago
parent
commit
ecddda19bf
  1. 6
      src/ImageSharp/Colors/Color.cs
  2. 2
      src/ImageSharp/Colors/ColorConstants.cs
  3. 2
      src/ImageSharp/Colors/ColorTransforms.cs
  4. 2
      src/ImageSharp/Colors/ColorspaceTransforms.cs
  5. 4
      src/ImageSharp/Colors/Colorspaces/IAlmostEquatable.cs
  6. 2
      src/ImageSharp/Colors/PackedPixel/IPackedBytes.cs
  7. 2
      src/ImageSharp/Colors/PackedPixel/IPackedVector.cs
  8. 2
      src/ImageSharp/Filters/Processors/Binarization/BinaryThresholdProcessor.cs
  9. 2
      src/ImageSharp/Filters/Processors/BlendProcessor.cs
  10. 2
      src/ImageSharp/Formats/Gif/GifEncoderCore.cs
  11. 2
      src/ImageSharp/Formats/Gif/LzwDecoder.cs
  12. 4
      src/ImageSharp/Formats/Gif/LzwEncoder.cs
  13. 6
      src/ImageSharp/Formats/Gif/PackedField.cs
  14. 2
      src/ImageSharp/Formats/Jpg/Components/Bits.cs
  15. 2
      src/ImageSharp/Formats/Jpg/Components/Huffman.cs
  16. 2
      src/ImageSharp/Formats/Jpg/Components/YCbCrImage.cs
  17. 18
      src/ImageSharp/Formats/Jpg/JpegConstants.cs
  18. 2
      src/ImageSharp/Formats/Jpg/JpegDecoderCore.cs
  19. 14
      src/ImageSharp/Formats/Jpg/JpegEncoderCore.cs
  20. 4
      src/ImageSharp/Formats/Jpg/JpegSubsample.cs
  21. 2
      src/ImageSharp/Formats/Png/Filters/AverageFilter.cs
  22. 12
      src/ImageSharp/Formats/Png/Filters/FilterType.cs
  23. 2
      src/ImageSharp/Formats/Png/Filters/NoneFilter.cs
  24. 2
      src/ImageSharp/Formats/Png/Filters/PaethFilter.cs
  25. 2
      src/ImageSharp/Formats/Png/Filters/SubFilter.cs
  26. 2
      src/ImageSharp/Formats/Png/Filters/UpFilter.cs
  27. 12
      src/ImageSharp/Formats/Png/PngChunk.cs
  28. 18
      src/ImageSharp/Formats/Png/PngChunkTypes.cs
  29. 2
      src/ImageSharp/Formats/Png/PngEncoder.cs
  30. 2
      src/ImageSharp/Formats/Png/PngEncoderCore.cs
  31. 20
      src/ImageSharp/Formats/Png/PngHeader.cs
  32. 2
      src/ImageSharp/Formats/Png/Zlib/Adler32.cs
  33. 4
      src/ImageSharp/Formats/Png/Zlib/ZlibDeflateStream.cs
  34. 2
      src/ImageSharp/Formats/Png/Zlib/ZlibInflateStream.cs
  35. 2
      src/ImageSharp/IO/BigEndianBitConverter.cs
  36. 2
      src/ImageSharp/IO/EndianBinaryReader.cs
  37. 2
      src/ImageSharp/IO/EndianBinaryWriter.cs
  38. 28
      src/ImageSharp/IO/EndianBitConverter.cs
  39. 2
      src/ImageSharp/IO/LittleEndianBitConverter.cs
  40. 2
      src/ImageSharp/Image/IImageBase.cs
  41. 2
      src/ImageSharp/Image/Image.cs
  42. 2
      src/ImageSharp/Image/ImageBase.cs
  43. 4
      src/ImageSharp/Image/ImageFrame.cs
  44. 2
      src/ImageSharp/Image/ImageIOExtensions.cs
  45. 4
      src/ImageSharp/Image/PixelAccessor.cs
  46. 20
      src/ImageSharp/Numerics/LongRational.cs
  47. 4
      src/ImageSharp/Numerics/Rational.cs
  48. 4
      src/ImageSharp/Numerics/SignedRational.cs
  49. 6
      src/ImageSharp/Properties/AssemblyInfo.cs
  50. 2
      src/ImageSharp/Quantizers/Palette/PaletteQuantizer.cs
  51. 6
      src/ImageSharp/Samplers/Options/ResizeHelper.cs
  52. 6
      src/ImageSharp/Samplers/Options/ResizeMode.cs
  53. 4
      src/ImageSharp/Samplers/Processors/CompandingResizeProcessor.cs
  54. 2
      src/ImageSharp/Samplers/Processors/Convolution/EdgeDetection/EdgeDetector2DFilter.cs
  55. 2
      src/ImageSharp/Samplers/Processors/Convolution/GuassianBlurProcessor.cs
  56. 2
      src/ImageSharp/Samplers/Processors/ResizeProcessor.cs
  57. 2
      src/ImageSharp/Samplers/Resamplers/CatmullRomResampler.cs
  58. 2
      src/ImageSharp/Samplers/Resamplers/HermiteResampler.cs
  59. 4
      src/ImageSharp/Samplers/Resamplers/TriangleResampler.cs

6
src/ImageSharp/Colors/Color.cs

@ -67,7 +67,7 @@ namespace ImageSharp
}
/// <summary>
/// Initializes a new instance of the <see cref="Color"/> struct.
/// Initializes a new instance of the <see cref="Color"/> struct.
/// </summary>
/// <param name="r">The red component.</param>
/// <param name="g">The green component.</param>
@ -79,7 +79,7 @@ namespace ImageSharp
}
/// <summary>
/// Initializes a new instance of the <see cref="Color"/> struct.
/// Initializes a new instance of the <see cref="Color"/> struct.
/// </summary>
/// <param name="vector">
/// The vector containing the components for the packed vector.
@ -90,7 +90,7 @@ namespace ImageSharp
}
/// <summary>
/// Initializes a new instance of the <see cref="Color"/> struct.
/// Initializes a new instance of the <see cref="Color"/> struct.
/// </summary>
/// <param name="vector">
/// The vector containing the components for the packed vector.

2
src/ImageSharp/Colors/ColorConstants.cs

@ -14,7 +14,7 @@ namespace ImageSharp
public static class ColorConstants
{
/// <summary>
/// Provides a lazy, one time method of returning the colors.
/// Provides a lazy, one time method of returning the colors.
/// </summary>
private static readonly Lazy<Color[]> SafeColors = new Lazy<Color[]>(GetWebSafeColors);

2
src/ImageSharp/Colors/ColorTransforms.cs

@ -23,7 +23,7 @@ namespace ImageSharp
/// <remarks>
/// 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.
/// </remarks>
/// </summary>

2
src/ImageSharp/Colors/ColorspaceTransforms.cs

@ -267,7 +267,7 @@ namespace ImageSharp
}
/// <summary>
/// Moves the specific value within the acceptable range for
/// Moves the specific value within the acceptable range for
/// conversion.
/// <remarks>Used for converting <see cref="Hsl"/> colors to this type.</remarks>
/// </summary>

4
src/ImageSharp/Colors/Colorspaces/IAlmostEquatable.cs

@ -8,12 +8,12 @@ namespace ImageSharp
using System;
/// <summary>
/// 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.
/// </summary>
/// <typeparam name="TColor">The type of objects to compare.</typeparam>
/// <typeparam name="TPrecision">The object specifying the type to specify precision with.</typeparam>
public interface IAlmostEquatable<in TColor, in TPrecision>
public interface IAlmostEquatable<in TColor, in TPrecision>
where TPrecision : struct, IComparable<TPrecision>
{
/// <summary>

2
src/ImageSharp/Colors/PackedPixel/IPackedBytes.cs

@ -6,7 +6,7 @@
namespace ImageSharp
{
/// <summary>
/// An interface that converts packed vector types to and from <see cref="T:byte[]"/> values,
/// An interface that converts packed vector types to and from <see cref="T:byte[]"/> values,
/// allowing multiple encodings to be manipulated in a generic manner.
/// </summary>
public interface IPackedBytes

2
src/ImageSharp/Colors/PackedPixel/IPackedVector.cs

@ -8,7 +8,7 @@ namespace ImageSharp
using System.Numerics;
/// <summary>
/// An interface that converts packed vector types to and from <see cref="Vector4"/> values,
/// An interface that converts packed vector types to and from <see cref="Vector4"/> values,
/// allowing multiple encodings to be manipulated in a generic manner.
/// </summary>
/// <typeparam name="TPacked">The packed format. <example>uint, long, float.</example></typeparam>

2
src/ImageSharp/Filters/Processors/Binarization/BinaryThresholdProcessor.cs

@ -9,7 +9,7 @@ namespace ImageSharp.Processors
using System.Threading.Tasks;
/// <summary>
/// An <see cref="IImageFilter{TColor,TPacked}"/> to perform binary threshold filtering against an
/// An <see cref="IImageFilter{TColor,TPacked}"/> to perform binary threshold filtering against an
/// <see cref="Image"/>. The image will be converted to grayscale before thresholding occurs.
/// </summary>
/// <typeparam name="TColor">The pixel format.</typeparam>

2
src/ImageSharp/Filters/Processors/BlendProcessor.cs

@ -27,7 +27,7 @@ namespace ImageSharp.Processors
/// Initializes a new instance of the <see cref="BlendProcessor{T,TP}"/> class.
/// </summary>
/// <param name="image">
/// 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.
/// </param>
/// <param name="alpha">The opacity of the image to blend. Between 0 and 100.</param>

2
src/ImageSharp/Formats/Gif/GifEncoderCore.cs

@ -58,7 +58,7 @@ namespace ImageSharp.Formats
this.Quantizer = new OctreeQuantizer<TColor, TPacked>();
}
// 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.

2
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;

4
src/ImageSharp/Formats/Gif/LzwEncoder.cs

@ -94,7 +94,7 @@ namespace ImageSharp.Formats
private int freeEntry;
/// <summary>
/// Block compression parameters -- after all codes are used up,
/// Block compression parameters -- after all codes are used up,
/// and compression rate changes, start over.
/// </summary>
private bool clearFlag;
@ -179,7 +179,7 @@ namespace ImageSharp.Formats
}
/// <summary>
/// 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.
/// </summary>
/// <param name="c">The character to add.</param>

6
src/ImageSharp/Formats/Gif/PackedField.cs

@ -48,7 +48,7 @@ namespace ImageSharp.Formats
}
/// <summary>
/// Returns a new <see cref="PackedField"/> with the bits in the packed fields to
/// Returns a new <see cref="PackedField"/> with the bits in the packed fields to
/// the corresponding bits from the supplied byte.
/// </summary>
/// <param name="value">The value to pack.</param>
@ -61,7 +61,7 @@ namespace ImageSharp.Formats
}
/// <summary>
/// Sets the specified bit within the packed fields to the supplied
/// Sets the specified bit within the packed fields to the supplied
/// value.
/// </summary>
/// <param name="index">
@ -84,7 +84,7 @@ namespace ImageSharp.Formats
}
/// <summary>
/// Sets the specified bits within the packed fields to the supplied
/// Sets the specified bits within the packed fields to the supplied
/// value.
/// </summary>
/// <param name="startIndex">The zero-based index within the packed fields of the first bit to set.</param>

2
src/ImageSharp/Formats/Jpg/Components/Bits.cs

@ -18,7 +18,7 @@ namespace ImageSharp.Formats
public uint Accumulator { get; set; }
/// <summary>
/// Gets or sets the mask.
/// Gets or sets the mask.
/// <![CDATA[mask==1<<(unreadbits-1) when unreadbits>0, with mask==0 when unreadbits==0.]]>
/// </summary>
public uint Mask { get; set; }

2
src/ImageSharp/Formats/Jpg/Components/Huffman.cs

@ -11,7 +11,7 @@ namespace ImageSharp.Formats
internal class Huffman
{
/// <summary>
/// Initializes a new instance of the <see cref="Huffman"/> class.
/// Initializes a new instance of the <see cref="Huffman"/> class.
/// </summary>
/// <param name="lutSize">The log-2 size of the Huffman decoder's look-up table.</param>
/// <param name="maxNCodes">The maximum (inclusive) number of codes in a Huffman tree.</param>

2
src/ImageSharp/Formats/Jpg/Components/YCbCrImage.cs

@ -6,7 +6,7 @@
namespace ImageSharp.Formats
{
/// <summary>
/// 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)
/// </summary>
internal class YCbCrImage
{

18
src/ImageSharp/Formats/Jpg/JpegConstants.cs

@ -94,7 +94,7 @@ namespace ImageSharp.Formats
/// <summary>
/// Start of Frame (baseline DCT)
/// <remarks>
/// 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).
/// </remarks>
/// </summary>
@ -103,7 +103,7 @@ namespace ImageSharp.Formats
/// <summary>
/// Start Of Frame (Extended Sequential DCT)
/// <remarks>
/// 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).
/// </remarks>
/// </summary>
@ -112,7 +112,7 @@ namespace ImageSharp.Formats
/// <summary>
/// Start Of Frame (progressive DCT)
/// <remarks>
/// 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).
/// </remarks>
/// </summary>
@ -137,7 +137,7 @@ namespace ImageSharp.Formats
/// <summary>
/// Define Restart Interval
/// <remarks>
/// 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.
/// </remarks>
/// </summary>
@ -146,7 +146,7 @@ namespace ImageSharp.Formats
/// <summary>
/// Define First Restart
/// <remarks>
/// 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.
/// </remarks>
/// </summary>
@ -155,7 +155,7 @@ namespace ImageSharp.Formats
/// <summary>
/// Define Eigth Restart
/// <remarks>
/// 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.
/// </remarks>
/// </summary>
@ -164,8 +164,8 @@ namespace ImageSharp.Formats
/// <summary>
/// Start of Scan
/// <remarks>
/// 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.
/// </remarks>
/// </summary>
@ -212,7 +212,7 @@ namespace ImageSharp.Formats
internal static class Adobe
{
/// <summary>
/// The color transform is unknown.(RGB or CMYK)
/// The color transform is unknown.(RGB or CMYK)
/// </summary>
public const int ColorTransformUnknown = 0;

2
src/ImageSharp/Formats/Jpg/JpegDecoderCore.cs

@ -679,7 +679,7 @@ namespace ImageSharp.Formats
}
/// <summary>
/// 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.
/// </summary>
private void Fill()

14
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
/// <summary>
/// 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.
/// </summary>
/// <param name="block">The block to write.</param>
@ -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
}
/// <summary>
/// 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.
/// </summary>
/// <param name="pixels">The pixel accessor providing acces to the image pixels.</param>

4
src/ImageSharp/Formats/Jpg/JpegSubsample.cs

@ -11,13 +11,13 @@ namespace ImageSharp.Formats
public enum JpegSubsample
{
/// <summary>
/// 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.
/// </summary>
Ratio444,
/// <summary>
/// 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.
/// </summary>
Ratio420

2
src/ImageSharp/Formats/Png/Filters/AverageFilter.cs

@ -8,7 +8,7 @@ namespace ImageSharp.Formats
using System;
/// <summary>
/// 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.
/// <see href="https://www.w3.org/TR/PNG-Filters.html"/>
/// </summary>

12
src/ImageSharp/Formats/Png/Filters/FilterType.cs

@ -12,32 +12,32 @@ namespace ImageSharp.Formats
internal enum FilterType
{
/// <summary>
/// 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.
/// </summary>
None = 0,
/// <summary>
/// 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.
/// </summary>
Sub = 1,
/// <summary>
/// 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.
/// </summary>
Up = 2,
/// <summary>
/// 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.
/// </summary>
Average = 3,
/// <summary>
/// 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
/// </summary>
Paeth = 4

2
src/ImageSharp/Formats/Png/Filters/NoneFilter.cs

@ -6,7 +6,7 @@
namespace ImageSharp.Formats
{
/// <summary>
/// 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.
/// <see href="https://www.w3.org/TR/PNG-Filters.html"/>
/// </summary>

2
src/ImageSharp/Formats/Png/Filters/PaethFilter.cs

@ -9,7 +9,7 @@ namespace ImageSharp.Formats
/// <summary>
/// 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.
/// <see href="https://www.w3.org/TR/PNG-Filters.html"/>
/// </summary>

2
src/ImageSharp/Formats/Png/Filters/SubFilter.cs

@ -6,7 +6,7 @@
namespace ImageSharp.Formats
{
/// <summary>
/// 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.
/// <see href="https://www.w3.org/TR/PNG-Filters.html"/>
/// </summary>

2
src/ImageSharp/Formats/Png/Filters/UpFilter.cs

@ -6,7 +6,7 @@
namespace ImageSharp.Formats
{
/// <summary>
/// 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.
/// <see href="https://www.w3.org/TR/PNG-Filters.html"/>
/// </summary>

12
src/ImageSharp/Formats/Png/PngChunk.cs

@ -12,8 +12,8 @@ namespace ImageSharp.Formats
{
/// <summary>
/// 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
/// </summary>
public int Length { get; set; }
@ -24,14 +24,14 @@ namespace ImageSharp.Formats
public string Type { get; set; }
/// <summary>
/// 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.
/// </summary>
public byte[] Data { get; set; }
/// <summary>
/// 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
/// </summary>
public uint Crc { get; set; }

18
src/ImageSharp/Formats/Png/PngChunkTypes.cs

@ -11,7 +11,7 @@ namespace ImageSharp.Formats
internal static class PngChunkTypes
{
/// <summary>
/// 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.
/// </summary>
@ -30,32 +30,32 @@ namespace ImageSharp.Formats
public const string Data = "IDAT";
/// <summary>
/// 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.
/// </summary>
public const string End = "IEND";
/// <summary>
/// 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).
/// </summary>
public const string PaletteAlpha = "tRNS";
/// <summary>
/// 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.
/// </summary>
public const string Text = "tEXt";
/// <summary>
/// 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.
/// </summary>
public const string Gamma = "gAMA";
/// <summary>
/// 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.
/// </summary>
public const string Physical = "pHYs";
}

2
src/ImageSharp/Formats/Png/PngEncoder.cs

@ -32,7 +32,7 @@ namespace ImageSharp.Formats
public string Extension => "png";
/// <summary>
/// Gets or sets the compression level 1-9.
/// Gets or sets the compression level 1-9.
/// <remarks>Defaults to 6.</remarks>
/// </summary>
public int CompressionLevel { get; set; } = 6;

2
src/ImageSharp/Formats/Png/PngEncoderCore.cs

@ -59,7 +59,7 @@ namespace ImageSharp.Formats
public PngColorType PngColorType { get; set; }
/// <summary>
/// Gets or sets the compression level 1-9.
/// Gets or sets the compression level 1-9.
/// <remarks>Defaults to 6.</remarks>
/// </summary>
public int CompressionLevel { get; set; } = 6;

20
src/ImageSharp/Formats/Png/PngHeader.cs

@ -22,39 +22,39 @@ namespace ImageSharp.Formats
/// <summary>
/// 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.
/// </summary>
public byte BitDepth { get; set; }
/// <summary>
/// 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).
/// </summary>
public byte ColorType { get; set; }
/// <summary>
/// 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.
/// </summary>
public byte CompressionMethod { get; set; }
/// <summary>
/// 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.
/// </summary>
public byte FilterMethod { get; set; }
/// <summary>
/// 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).
/// </summary>
public byte InterlaceMethod { get; set; }

2
src/ImageSharp/Formats/Png/Zlib/Adler32.cs

@ -67,7 +67,7 @@ namespace ImageSharp.Formats
private uint checksum;
/// <summary>
/// Initializes a new instance of the <see cref="Adler32"/> class.
/// Initializes a new instance of the <see cref="Adler32"/> class.
/// The checksum starts off with a value of 1.
/// </summary>
public Adler32()

4
src/ImageSharp/Formats/Png/Zlib/ZlibDeflateStream.cs

@ -20,7 +20,7 @@ namespace ImageSharp.Formats
private readonly Stream rawStream;
/// <summary>
/// Computes the checksum for the data stream.
/// Computes the checksum for the data stream.
/// </summary>
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

2
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

2
src/ImageSharp/IO/BigEndianBitConverter.cs

@ -21,7 +21,7 @@ namespace ImageSharp.IO
/// <inheritdoc/>
public override bool IsLittleEndian() => false;
/// <inheritdoc/>
protected internal override void CopyBytesImpl(long value, int bytes, byte[] buffer, int index)
{

2
src/ImageSharp/IO/EndianBinaryReader.cs

@ -523,7 +523,7 @@ namespace ImageSharp.IO
/// <summary>
/// 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.
/// </summary>

2
src/ImageSharp/IO/EndianBinaryWriter.cs

@ -31,7 +31,7 @@ namespace ImageSharp.IO
private bool disposed;
/// <summary>
/// Initializes a new instance of the <see cref="EndianBinaryWriter"/> class
/// Initializes a new instance of the <see cref="EndianBinaryWriter"/> class
/// with the given bit converter, writing to the given stream, using UTF-8 encoding.
/// </summary>
/// <param name="bitConverter">Converter to use when writing data</param>

28
src/ImageSharp/IO/EndianBitConverter.cs

@ -13,7 +13,7 @@ namespace ImageSharp.IO
/// Equivalent of <see cref="System.BitConverter"/>, but with either endianness.
/// <remarks>
/// Adapted from Miscellaneous Utility Library <see href="http://jonskeet.uk/csharp/miscutil/"/>
/// This product includes software developed by Jon Skeet and Marc Gravell. Contact <see href="mailto:skeet@pobox.com"/>, or see
/// This product includes software developed by Jon Skeet and Marc Gravell. Contact <see href="mailto:skeet@pobox.com"/>, or see
/// <see href="http://www.pobox.com/~skeet/"/>.
/// </remarks>
/// </summary>
@ -28,7 +28,7 @@ namespace ImageSharp.IO
/// </summary>
/// <remarks>
/// 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.
/// </remarks>
/// <returns>true if this converter is little-endian, false otherwise.</returns>
@ -66,7 +66,7 @@ namespace ImageSharp.IO
#region Double/primitive conversions
/// <summary>
/// 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.
/// </summary>
@ -78,7 +78,7 @@ namespace ImageSharp.IO
}
/// <summary>
/// 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.
/// </summary>
@ -90,7 +90,7 @@ namespace ImageSharp.IO
}
/// <summary>
/// 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.
/// </summary>
@ -102,7 +102,7 @@ namespace ImageSharp.IO
}
/// <summary>
/// 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.
/// </summary>
@ -139,7 +139,7 @@ namespace ImageSharp.IO
}
/// <summary>
/// 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.
/// </summary>
/// <param name="value">An array of bytes.</param>
@ -151,7 +151,7 @@ namespace ImageSharp.IO
}
/// <summary>
/// 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.
/// </summary>
/// <param name="value">An array of bytes.</param>
@ -285,7 +285,7 @@ namespace ImageSharp.IO
/// <param name="value">An array of bytes.</param>
/// <remarks>All the elements of value are converted.</remarks>
/// <returns>
/// 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".
/// </returns>
public static string ToString(byte[] value)
@ -300,7 +300,7 @@ namespace ImageSharp.IO
/// <param name="startIndex">The starting position within value.</param>
/// <remarks>The elements from array position startIndex to the end of the array are converted.</remarks>
/// <returns>
/// 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".
/// </returns>
public static string ToString(byte[] value, int startIndex)
@ -316,7 +316,7 @@ namespace ImageSharp.IO
/// <param name="length">The number of bytes to convert.</param>
/// <remarks>The length elements from array position startIndex are converted.</remarks>
/// <returns>
/// 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".
/// </returns>
public static string ToString(byte[] value, int startIndex, int length)
@ -327,7 +327,7 @@ namespace ImageSharp.IO
#region Decimal conversions
/// <summary>
/// Returns a decimal value converted from sixteen bytes
/// Returns a decimal value converted from sixteen bytes
/// at a specified position in a byte array.
/// </summary>
/// <param name="value">An array of bytes.</param>
@ -688,7 +688,7 @@ namespace ImageSharp.IO
private readonly float f;
/// <summary>
/// Initializes a new instance of the <see cref="Int32SingleUnion"/> struct.
/// Initializes a new instance of the <see cref="Int32SingleUnion"/> struct.
/// </summary>
/// <param name="i">The integer value of the new instance.</param>
internal Int32SingleUnion(int i)
@ -698,7 +698,7 @@ namespace ImageSharp.IO
}
/// <summary>
/// Initializes a new instance of the <see cref="Int32SingleUnion"/> struct.
/// Initializes a new instance of the <see cref="Int32SingleUnion"/> struct.
/// </summary>
/// <param name="f">
/// The floating point value of the new instance.

2
src/ImageSharp/IO/LittleEndianBitConverter.cs

@ -10,7 +10,7 @@ namespace ImageSharp.IO
/// byte arrays.
/// <remarks>
/// Adapted from Miscellaneous Utility Library <see href="http://jonskeet.uk/csharp/miscutil/"/>
/// This product includes software developed by Jon Skeet and Marc Gravell. Contact <see href="mailto:skeet@pobox.com"/>, or see
/// This product includes software developed by Jon Skeet and Marc Gravell. Contact <see href="mailto:skeet@pobox.com"/>, or see
/// <see href="http://www.pobox.com/~skeet/"/>.
/// </remarks>
/// </summary>

2
src/ImageSharp/Image/IImageBase.cs

@ -34,7 +34,7 @@ namespace ImageSharp
void SetPixels(int width, int height, TColor[] pixels);
/// <summary>
/// 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.
/// </summary>
/// <param name="width">The new width of the image. Must be greater than zero.</param>

2
src/ImageSharp/Image/Image.cs

@ -241,7 +241,7 @@ namespace ImageSharp
}
/// <summary>
/// Returns a Base64 encoded string from the given image.
/// Returns a Base64 encoded string from the given image.
/// </summary>
/// <example>data:image/gif;base64,R0lGODlhAQABAIABAEdJRgAAACwAAAAAAQABAAACAkQBAA==</example>
/// <returns>The <see cref="string"/></returns>

2
src/ImageSharp/Image/ImageBase.cs

@ -10,7 +10,7 @@ namespace ImageSharp
using System.Diagnostics;
/// <summary>
/// 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.
/// </summary>
/// <typeparam name="TColor">The pixel format.</typeparam>

4
src/ImageSharp/Image/ImageFrame.cs

@ -15,14 +15,14 @@ namespace ImageSharp
where TPacked : struct
{
/// <summary>
/// Initializes a new instance of the <see cref="ImageFrame{TColor, TPacked}"/> class.
/// Initializes a new instance of the <see cref="ImageFrame{TColor, TPacked}"/> class.
/// </summary>
public ImageFrame()
{
}
/// <summary>
/// Initializes a new instance of the <see cref="ImageFrame{TColor, TPacked}"/> class.
/// Initializes a new instance of the <see cref="ImageFrame{TColor, TPacked}"/> class.
/// </summary>
/// <param name="frame">
/// The frame to create the frame from.

2
src/ImageSharp/Image/ImageIOExtensions.cs

@ -37,7 +37,7 @@ namespace ImageSharp
/// <typeparam name="TPacked">The packed format. <example>uint, long, float.</example></typeparam>
/// <param name="source">The image this method extends.</param>
/// <param name="stream">The stream to save the image to.</param>
/// <param name="quality">The quality to save the image to representing the number of colors.
/// <param name="quality">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.
/// </param>
/// <exception cref="System.ArgumentNullException">Thrown if the stream is null.</exception>

4
src/ImageSharp/Image/PixelAccessor.cs

@ -64,7 +64,7 @@ namespace ImageSharp
}
/// <summary>
/// Finalizes an instance of the <see cref="PixelAccessor{TColor,TPacked}"/> class.
/// Finalizes an instance of the <see cref="PixelAccessor{TColor,TPacked}"/> class.
/// </summary>
~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);

20
src/ImageSharp/Numerics/LongRational.cs

@ -18,10 +18,10 @@ namespace ImageSharp
internal struct LongRational : IEquatable<LongRational>
{
/// <summary>
/// Initializes a new instance of the <see cref="LongRational"/> struct.
/// Initializes a new instance of the <see cref="LongRational"/> struct.
/// </summary>
/// <param name="numerator">
/// 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.
/// </param>
/// <param name="denominator">
@ -33,10 +33,10 @@ namespace ImageSharp
}
/// <summary>
/// Initializes a new instance of the <see cref="LongRational"/> struct.
/// Initializes a new instance of the <see cref="LongRational"/> struct.
/// </summary>
/// <param name="numerator">
/// 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.
/// </param>
/// <param name="denominator">
@ -58,7 +58,7 @@ namespace ImageSharp
}
/// <summary>
/// Initializes a new instance of the <see cref="LongRational"/> struct.
/// Initializes a new instance of the <see cref="LongRational"/> struct.
/// </summary>
/// <param name="value">The <see cref="double"/> to create the instance from.</param>
/// <param name="bestPrecision">Whether to use the best possible precision when parsing the value.</param>
@ -134,7 +134,7 @@ namespace ImageSharp
}
/// <summary>
/// Gets a value indicating whether this instance is indeterminate.
/// Gets a value indicating whether this instance is indeterminate.
/// </summary>
public bool IsIndeterminate
{
@ -155,7 +155,7 @@ namespace ImageSharp
public bool IsInteger => this.Denominator == 1;
/// <summary>
/// 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)
/// </summary>
public bool IsNegativeInfinity
{
@ -171,7 +171,7 @@ namespace ImageSharp
}
/// <summary>
/// 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)
/// </summary>
public bool IsPositiveInfinity
{
@ -236,11 +236,11 @@ namespace ImageSharp
}
/// <summary>
/// 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.
/// </summary>
/// <param name="provider">
/// An object that supplies culture-specific formatting information.
/// An object that supplies culture-specific formatting information.
/// </param>
/// <returns>The <see cref="string"/></returns>
public string ToString(IFormatProvider provider)

4
src/ImageSharp/Numerics/Rational.cs

@ -173,11 +173,11 @@ namespace ImageSharp
}
/// <summary>
/// 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.
/// </summary>
/// <param name="provider">
/// An object that supplies culture-specific formatting information.
/// An object that supplies culture-specific formatting information.
/// </param>
/// <returns>The <see cref="string"/></returns>
public string ToString(IFormatProvider provider)

4
src/ImageSharp/Numerics/SignedRational.cs

@ -173,11 +173,11 @@ namespace ImageSharp
}
/// <summary>
/// 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.
/// </summary>
/// <param name="provider">
/// An object that supplies culture-specific formatting information.
/// An object that supplies culture-specific formatting information.
/// </param>
/// <returns>The <see cref="string"/></returns>
public string ToString(IFormatProvider provider)

6
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")]

2
src/ImageSharp/Quantizers/Palette/PaletteQuantizer.cs

@ -34,7 +34,7 @@ namespace ImageSharp.Quantizers
/// Initializes a new instance of the <see cref="PaletteQuantizer{TColor, TPacked}"/> class.
/// </summary>
/// <param name="palette">
/// 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.
/// </param>
public PaletteQuantizer(TColor[] palette = null)

6
src/ImageSharp/Samplers/Options/ResizeHelper.cs

@ -9,7 +9,7 @@ namespace ImageSharp
using System.Linq;
/// <summary>
/// Provides methods to help calculate the target rectangle when resizing using the
/// Provides methods to help calculate the target rectangle when resizing using the
/// <see cref="ResizeMode"/> enumeration.
/// </summary>
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);
}

6
src/ImageSharp/Samplers/Options/ResizeMode.cs

@ -22,7 +22,7 @@ namespace ImageSharp
Pad,
/// <summary>
/// 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 <see cref="ResizeMode.Pad"/>
/// </summary>
@ -30,13 +30,13 @@ namespace ImageSharp
/// <summary>
/// Constrains the resized image to fit the bounds of its container maintaining
/// the original aspect ratio.
/// the original aspect ratio.
/// </summary>
Max,
/// <summary>
/// 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.
/// </summary>
Min,

4
src/ImageSharp/Samplers/Processors/CompandingResizeProcessor.cs

@ -10,7 +10,7 @@ namespace ImageSharp.Processors
using System.Threading.Tasks;
/// <summary>
/// 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.
/// </summary>
/// <typeparam name="TColor">The pixel format.</typeparam>
@ -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<TColor, TPacked> firstPass = new Image<TColor, TPacked>(target.Width, source.Height);

2
src/ImageSharp/Samplers/Processors/Convolution/EdgeDetection/EdgeDetector2DFilter.cs

@ -31,7 +31,7 @@ namespace ImageSharp.Processors
/// <inheritdoc />
public override void Apply(ImageBase<TColor, TPacked> target, ImageBase<TColor, TPacked> 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<TColor, TPacked>(this.KernelX, this.KernelY).Apply(target, source, targetRectangle, sourceRectangle, startY, endY);
}

2
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;

2
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<TColor, TPacked> firstPass = new Image<TColor, TPacked>(target.Width, source.Height);

2
src/ImageSharp/Samplers/Resamplers/CatmullRomResampler.cs

@ -7,7 +7,7 @@ namespace ImageSharp
{
/// <summary>
/// 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.
/// <see href="http://www.imagemagick.org/Usage/filter/#cubic_bc"/>
/// </summary>

2
src/ImageSharp/Samplers/Resamplers/HermiteResampler.cs

@ -6,7 +6,7 @@
namespace ImageSharp.Processors
{
/// <summary>
/// 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.
/// <see href="http://www.imagemagick.org/Usage/filter/#cubic_bc"/>
/// </summary>

4
src/ImageSharp/Samplers/Resamplers/TriangleResampler.cs

@ -7,8 +7,8 @@ namespace ImageSharp
{
/// <summary>
/// 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.
/// </summary>
public class TriangleResampler : IResampler
{

Loading…
Cancel
Save