Browse Source

codestyle fixes

af/merge-core
denisivan0v 8 years ago
parent
commit
d31a522493
  1. 2
      src/ImageSharp/Formats/Bmp/BmpDecoderCore.cs
  2. 4
      src/ImageSharp/Formats/Gif/GifDecoderCore.cs
  3. 2
      src/ImageSharp/Formats/Gif/Sections/GifLogicalScreenDescriptor.cs
  4. 2
      src/ImageSharp/Formats/Jpeg/GolangPort/OrigJpegDecoderCore.cs
  5. 2
      src/ImageSharp/Image/ImageInfo.cs
  6. 2
      src/ImageSharp/Image/Image{TPixel}.cs

2
src/ImageSharp/Formats/Bmp/BmpDecoderCore.cs

@ -149,7 +149,7 @@ namespace SixLabors.ImageSharp.Formats.Bmp
this.ReadImageHeaders(stream, out _, out _); this.ReadImageHeaders(stream, out _, out _);
return new ImageInfo(new PixelTypeInfo(this.infoHeader.BitsPerPixel), this.infoHeader.Width, this.infoHeader.Height, new ImageMetaData()); return new ImageInfo(new PixelTypeInfo(this.infoHeader.BitsPerPixel), this.infoHeader.Width, this.infoHeader.Height, new ImageMetaData());
} }
/// <summary> /// <summary>
/// Returns the y- value based on the given height. /// Returns the y- value based on the given height.
/// </summary> /// </summary>

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

@ -186,7 +186,7 @@ namespace SixLabors.ImageSharp.Formats.Gif
if (imageDescriptor.LocalColorTableFlag) if (imageDescriptor.LocalColorTableFlag)
{ {
int length = imageDescriptor.LocalColorTableSize * 3; int length = imageDescriptor.LocalColorTableSize * 3;
// Skip local color table block // Skip local color table block
this.Skip(length); this.Skip(length);
} }
@ -200,7 +200,7 @@ namespace SixLabors.ImageSharp.Formats.Gif
switch (label) switch (label)
{ {
case GifConstants.GraphicControlLabel: case GifConstants.GraphicControlLabel:
// Skip graphic control extension block // Skip graphic control extension block
this.Skip(0); this.Skip(0);
break; break;

2
src/ImageSharp/Formats/Gif/Sections/GifLogicalScreenDescriptor.cs

@ -21,7 +21,7 @@ namespace SixLabors.ImageSharp.Formats.Gif
/// rendered in the displaying device. /// rendered in the displaying device.
/// </summary> /// </summary>
public short Height { get; set; } public short Height { get; set; }
/// <summary> /// <summary>
/// Gets or sets the color depth, in number of bits per pixel. /// Gets or sets the color depth, in number of bits per pixel.
/// </summary> /// </summary>

2
src/ImageSharp/Formats/Jpeg/GolangPort/OrigJpegDecoderCore.cs

@ -131,7 +131,7 @@ namespace SixLabors.ImageSharp.Formats.Jpeg.GolangPort
/// Gets the color depth, in number of bits per pixel. /// Gets the color depth, in number of bits per pixel.
/// </summary> /// </summary>
public int BitsPerPixel => this.ComponentCount * SupportedPrecision; public int BitsPerPixel => this.ComponentCount * SupportedPrecision;
/// <summary> /// <summary>
/// Gets the image height /// Gets the image height
/// </summary> /// </summary>

2
src/ImageSharp/Image/ImageInfo.cs

@ -12,7 +12,7 @@ namespace SixLabors.ImageSharp
this.Height = height; this.Height = height;
this.MetaData = metaData; this.MetaData = metaData;
} }
public PixelTypeInfo PixelType { get; } public PixelTypeInfo PixelType { get; }
public int Width { get; } public int Width { get; }

2
src/ImageSharp/Image/Image{TPixel}.cs

@ -88,7 +88,7 @@ namespace SixLabors.ImageSharp
/// Gets the pixel buffer. /// Gets the pixel buffer.
/// </summary> /// </summary>
Configuration IConfigurable.Configuration => this.configuration; Configuration IConfigurable.Configuration => this.configuration;
/// <inheritdoc/> /// <inheritdoc/>
public PixelTypeInfo PixelType { get; } public PixelTypeInfo PixelType { get; }

Loading…
Cancel
Save