Browse Source

codestyle fixes

pull/292/head
denisivan0v 8 years ago
parent
commit
b435f5eaa5
  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 _);
return new ImageInfo(new PixelTypeInfo(this.infoHeader.BitsPerPixel), this.infoHeader.Width, this.infoHeader.Height, new ImageMetaData());
}
/// <summary>
/// Returns the y- value based on the given height.
/// </summary>

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

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

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

@ -21,7 +21,7 @@ namespace SixLabors.ImageSharp.Formats.Gif
/// rendered in the displaying device.
/// </summary>
public short Height { get; set; }
/// <summary>
/// Gets or sets the color depth, in number of bits per pixel.
/// </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.
/// </summary>
public int BitsPerPixel => this.ComponentCount * SupportedPrecision;
/// <summary>
/// Gets the image height
/// </summary>

2
src/ImageSharp/Image/ImageInfo.cs

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

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

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

Loading…
Cancel
Save