Browse Source

Sealed some classes and made some classes internal.

af/merge-core
Dirk Lemstra 9 years ago
parent
commit
234107de08
  1. 2
      src/ImageSharp/Common/Exceptions/ImageFormatException.cs
  2. 2
      src/ImageSharp/Common/Exceptions/ImageProcessingException.cs
  3. 2
      src/ImageSharp/Formats/Bmp/BmpConfigurationModule.cs
  4. 2
      src/ImageSharp/Formats/Bmp/BmpDecoder.cs
  5. 2
      src/ImageSharp/Formats/Bmp/BmpEncoder.cs
  6. 2
      src/ImageSharp/Formats/Bmp/BmpFileHeader.cs
  7. 2
      src/ImageSharp/Formats/Bmp/BmpInfoHeader.cs
  8. 2
      src/ImageSharp/Formats/Gif/GifConfigurationModule.cs
  9. 2
      src/ImageSharp/Formats/Gif/GifDecoder.cs
  10. 2
      src/ImageSharp/Formats/Gif/GifDecoderCore.cs
  11. 2
      src/ImageSharp/Formats/Gif/GifEncoder.cs
  12. 2
      src/ImageSharp/Formats/Jpeg/JpegConfigurationModule.cs
  13. 2
      src/ImageSharp/Formats/Jpeg/JpegDecoder.cs
  14. 2
      src/ImageSharp/Formats/Jpeg/JpegDecoderCore.cs
  15. 2
      src/ImageSharp/Formats/Jpeg/JpegEncoder.cs
  16. 2
      src/ImageSharp/Formats/Jpeg/JpegEncoderCore.cs
  17. 2
      src/ImageSharp/Formats/Png/PngConfigurationModule.cs
  18. 2
      src/ImageSharp/Formats/Png/PngDecoder.cs
  19. 2
      src/ImageSharp/Formats/Png/PngDecoderCore.cs
  20. 2
      src/ImageSharp/Formats/Png/PngEncoder.cs
  21. 2
      src/ImageSharp/Formats/Png/PngHeader.cs
  22. 2
      src/ImageSharp/Formats/Png/PngInterlaceMode.cs
  23. 2
      src/ImageSharp/Formats/Png/Zlib/IChecksum.cs
  24. 2
      src/ImageSharp/Formats/Png/Zlib/ZlibInflateStream.cs

2
src/ImageSharp/Common/Exceptions/ImageFormatException.cs

@ -11,7 +11,7 @@ namespace ImageSharp
/// The exception that is thrown when the library tries to load /// The exception that is thrown when the library tries to load
/// an image, which has an invalid format. /// an image, which has an invalid format.
/// </summary> /// </summary>
public class ImageFormatException : Exception public sealed class ImageFormatException : Exception
{ {
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="ImageFormatException"/> class. /// Initializes a new instance of the <see cref="ImageFormatException"/> class.

2
src/ImageSharp/Common/Exceptions/ImageProcessingException.cs

@ -10,7 +10,7 @@ namespace ImageSharp
/// <summary> /// <summary>
/// The exception that is thrown when an error occurs when applying a process to an image. /// The exception that is thrown when an error occurs when applying a process to an image.
/// </summary> /// </summary>
public class ImageProcessingException : Exception public sealed class ImageProcessingException : Exception
{ {
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="ImageProcessingException"/> class. /// Initializes a new instance of the <see cref="ImageProcessingException"/> class.

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

@ -8,7 +8,7 @@ namespace ImageSharp.Formats
/// <summary> /// <summary>
/// Registers the image encoders, decoders and mime type detectors for the bmp format. /// Registers the image encoders, decoders and mime type detectors for the bmp format.
/// </summary> /// </summary>
public class BmpConfigurationModule : IConfigurationModule public sealed class BmpConfigurationModule : IConfigurationModule
{ {
/// <inheritdoc/> /// <inheritdoc/>
public void Configure(Configuration config) public void Configure(Configuration config)

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

@ -26,7 +26,7 @@ namespace ImageSharp.Formats
/// Formats will be supported in a later releases. We advise always /// Formats will be supported in a later releases. We advise always
/// to use only 24 Bit Windows bitmaps. /// to use only 24 Bit Windows bitmaps.
/// </remarks> /// </remarks>
public class BmpDecoder : IImageDecoder, IBmpDecoderOptions public sealed class BmpDecoder : IImageDecoder, IBmpDecoderOptions
{ {
/// <inheritdoc/> /// <inheritdoc/>
public Image<TPixel> Decode<TPixel>(Configuration configuration, Stream stream) public Image<TPixel> Decode<TPixel>(Configuration configuration, Stream stream)

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

@ -15,7 +15,7 @@ namespace ImageSharp.Formats
/// Image encoder for writing an image to a stream as a Windows bitmap. /// Image encoder for writing an image to a stream as a Windows bitmap.
/// </summary> /// </summary>
/// <remarks>The encoder can currently only write 24-bit rgb images to streams.</remarks> /// <remarks>The encoder can currently only write 24-bit rgb images to streams.</remarks>
public class BmpEncoder : IImageEncoder, IBmpEncoderOptions public sealed class BmpEncoder : IImageEncoder, IBmpEncoderOptions
{ {
/// <summary> /// <summary>
/// Gets or sets the number of bits per pixel. /// Gets or sets the number of bits per pixel.

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

@ -15,7 +15,7 @@ namespace ImageSharp.Formats
/// All of the other integer values are stored in little-endian format /// All of the other integer values are stored in little-endian format
/// (i.e. least-significant byte first). /// (i.e. least-significant byte first).
/// </remarks> /// </remarks>
internal class BmpFileHeader internal sealed class BmpFileHeader
{ {
/// <summary> /// <summary>
/// Defines of the data structure in the bitmap file. /// Defines of the data structure in the bitmap file.

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

@ -10,7 +10,7 @@ namespace ImageSharp.Formats
/// the screen. /// the screen.
/// <see href="https://en.wikipedia.org/wiki/BMP_file_format"/> /// <see href="https://en.wikipedia.org/wiki/BMP_file_format"/>
/// </summary> /// </summary>
internal class BmpInfoHeader internal sealed class BmpInfoHeader
{ {
/// <summary> /// <summary>
/// Defines of the data structure in the bitmap file. /// Defines of the data structure in the bitmap file.

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

@ -8,7 +8,7 @@ namespace ImageSharp.Formats
/// <summary> /// <summary>
/// Registers the image encoders, decoders and mime type detectors for the gif format. /// Registers the image encoders, decoders and mime type detectors for the gif format.
/// </summary> /// </summary>
public class GifConfigurationModule : IConfigurationModule public sealed class GifConfigurationModule : IConfigurationModule
{ {
/// <inheritdoc/> /// <inheritdoc/>
public void Configure(Configuration config) public void Configure(Configuration config)

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

@ -14,7 +14,7 @@ namespace ImageSharp.Formats
/// <summary> /// <summary>
/// Decoder for generating an image out of a gif encoded stream. /// Decoder for generating an image out of a gif encoded stream.
/// </summary> /// </summary>
public class GifDecoder : IImageDecoder, IGifDecoderOptions public sealed class GifDecoder : IImageDecoder, IGifDecoderOptions
{ {
/// <summary> /// <summary>
/// Gets or sets a value indicating whether the metadata should be ignored when the image is being decoded. /// Gets or sets a value indicating whether the metadata should be ignored when the image is being decoded.

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

@ -18,7 +18,7 @@ namespace ImageSharp.Formats
/// Performs the gif decoding operation. /// Performs the gif decoding operation.
/// </summary> /// </summary>
/// <typeparam name="TPixel">The pixel format.</typeparam> /// <typeparam name="TPixel">The pixel format.</typeparam>
internal class GifDecoderCore<TPixel> internal sealed class GifDecoderCore<TPixel>
where TPixel : struct, IPixel<TPixel> where TPixel : struct, IPixel<TPixel>
{ {
/// <summary> /// <summary>

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

@ -15,7 +15,7 @@ namespace ImageSharp.Formats
/// <summary> /// <summary>
/// Image encoder for writing image data to a stream in gif format. /// Image encoder for writing image data to a stream in gif format.
/// </summary> /// </summary>
public class GifEncoder : IImageEncoder, IGifEncoderOptions public sealed class GifEncoder : IImageEncoder, IGifEncoderOptions
{ {
/// <summary> /// <summary>
/// Gets or sets a value indicating whether the metadata should be ignored when the image is being encoded. /// Gets or sets a value indicating whether the metadata should be ignored when the image is being encoded.

2
src/ImageSharp/Formats/Jpeg/JpegConfigurationModule.cs

@ -8,7 +8,7 @@ namespace ImageSharp.Formats
/// <summary> /// <summary>
/// Registers the image encoders, decoders and mime type detectors for the jpeg format. /// Registers the image encoders, decoders and mime type detectors for the jpeg format.
/// </summary> /// </summary>
public class JpegConfigurationModule : IConfigurationModule public sealed class JpegConfigurationModule : IConfigurationModule
{ {
/// <inheritdoc/> /// <inheritdoc/>
public void Configure(Configuration config) public void Configure(Configuration config)

2
src/ImageSharp/Formats/Jpeg/JpegDecoder.cs

@ -14,7 +14,7 @@ namespace ImageSharp.Formats
/// <summary> /// <summary>
/// Image decoder for generating an image out of a jpg stream. /// Image decoder for generating an image out of a jpg stream.
/// </summary> /// </summary>
public class JpegDecoder : IImageDecoder, IJpegDecoderOptions public sealed class JpegDecoder : IImageDecoder, IJpegDecoderOptions
{ {
/// <summary> /// <summary>
/// Gets or sets a value indicating whether the metadata should be ignored when the image is being decoded. /// Gets or sets a value indicating whether the metadata should be ignored when the image is being decoded.

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

@ -18,7 +18,7 @@ namespace ImageSharp.Formats
/// <summary> /// <summary>
/// Performs the jpeg decoding operation. /// Performs the jpeg decoding operation.
/// </summary> /// </summary>
internal unsafe class JpegDecoderCore : IDisposable internal sealed unsafe class JpegDecoderCore : IDisposable
{ {
/// <summary> /// <summary>
/// The maximum number of color components /// The maximum number of color components

2
src/ImageSharp/Formats/Jpeg/JpegEncoder.cs

@ -14,7 +14,7 @@ namespace ImageSharp.Formats
/// <summary> /// <summary>
/// Encoder for writing the data image to a stream in jpeg format. /// Encoder for writing the data image to a stream in jpeg format.
/// </summary> /// </summary>
public class JpegEncoder : IImageEncoder, IJpegEncoderOptions public sealed class JpegEncoder : IImageEncoder, IJpegEncoderOptions
{ {
/// <summary> /// <summary>
/// Gets or sets a value indicating whether the metadata should be ignored when the image is being decoded. /// Gets or sets a value indicating whether the metadata should be ignored when the image is being decoded.

2
src/ImageSharp/Formats/Jpeg/JpegEncoderCore.cs

@ -17,7 +17,7 @@ namespace ImageSharp.Formats
/// <summary> /// <summary>
/// Image encoder for writing an image to a stream as a jpeg. /// Image encoder for writing an image to a stream as a jpeg.
/// </summary> /// </summary>
internal unsafe class JpegEncoderCore internal sealed unsafe class JpegEncoderCore
{ {
/// <summary> /// <summary>
/// The number of quantization tables. /// The number of quantization tables.

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

@ -8,7 +8,7 @@ namespace ImageSharp.Formats
/// <summary> /// <summary>
/// Registers the image encoders, decoders and mime type detectors for the png format. /// Registers the image encoders, decoders and mime type detectors for the png format.
/// </summary> /// </summary>
public class PngConfigurationModule : IConfigurationModule public sealed class PngConfigurationModule : IConfigurationModule
{ {
/// <inheritdoc/> /// <inheritdoc/>
public void Configure(Configuration host) public void Configure(Configuration host)

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

@ -31,7 +31,7 @@ namespace ImageSharp.Formats
/// </list> /// </list>
/// </para> /// </para>
/// </remarks> /// </remarks>
public class PngDecoder : IImageDecoder, IPngDecoderOptions public sealed class PngDecoder : IImageDecoder, IPngDecoderOptions
{ {
/// <summary> /// <summary>
/// Gets or sets a value indicating whether the metadata should be ignored when the image is being decoded. /// Gets or sets a value indicating whether the metadata should be ignored when the image is being decoded.

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

@ -20,7 +20,7 @@ namespace ImageSharp.Formats
/// <summary> /// <summary>
/// Performs the png decoding operation. /// Performs the png decoding operation.
/// </summary> /// </summary>
internal class PngDecoderCore internal sealed class PngDecoderCore
{ {
/// <summary> /// <summary>
/// The dictionary of available color types. /// The dictionary of available color types.

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

@ -14,7 +14,7 @@ namespace ImageSharp.Formats
/// <summary> /// <summary>
/// Image encoder for writing image data to a stream in png format. /// Image encoder for writing image data to a stream in png format.
/// </summary> /// </summary>
public class PngEncoder : IImageEncoder, IPngEncoderOptions public sealed class PngEncoder : IImageEncoder, IPngEncoderOptions
{ {
/// <summary> /// <summary>
/// Gets or sets a value indicating whether the metadata should be ignored when the image is being encoded. /// Gets or sets a value indicating whether the metadata should be ignored when the image is being encoded.

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

@ -8,7 +8,7 @@ namespace ImageSharp.Formats
/// <summary> /// <summary>
/// Represents the png header chunk. /// Represents the png header chunk.
/// </summary> /// </summary>
public sealed class PngHeader internal sealed class PngHeader
{ {
/// <summary> /// <summary>
/// Gets or sets the dimension in x-direction of the image in pixels. /// Gets or sets the dimension in x-direction of the image in pixels.

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

@ -8,7 +8,7 @@ namespace ImageSharp.Formats
/// <summary> /// <summary>
/// Provides enumeration of available PNG interlace modes. /// Provides enumeration of available PNG interlace modes.
/// </summary> /// </summary>
public enum PngInterlaceMode : byte internal enum PngInterlaceMode : byte
{ {
/// <summary> /// <summary>
/// Non interlaced /// Non interlaced

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

@ -12,7 +12,7 @@ namespace ImageSharp.Formats
/// <code>Value</code>. The complete checksum object can also be reset /// <code>Value</code>. The complete checksum object can also be reset
/// so it can be used again with new data. /// so it can be used again with new data.
/// </summary> /// </summary>
public interface IChecksum internal interface IChecksum
{ {
/// <summary> /// <summary>
/// Gets the data checksum computed so far. /// Gets the data checksum computed so far.

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

@ -9,7 +9,7 @@
/// <summary> /// <summary>
/// Provides methods and properties for deframing streams from PNGs. /// Provides methods and properties for deframing streams from PNGs.
/// </summary> /// </summary>
internal class ZlibInflateStream : Stream internal sealed class ZlibInflateStream : Stream
{ {
/// <summary> /// <summary>
/// The inner raw memory stream /// The inner raw memory stream

Loading…
Cancel
Save