//
// Copyright (c) James Jackson-South and contributors.
// Licensed under the Apache License, Version 2.0.
//
namespace ImageSharp.Formats
{
using System;
using System.IO;
///
/// Image decoder for generating an image out of a Windows bitmap stream.
///
///
/// Does not support the following formats at the moment:
///
/// - JPG
/// - PNG
/// - RLE4
/// - RLE8
/// - BitFields
///
/// Formats will be supported in a later releases. We advise always
/// to use only 24 Bit Windows bitmaps.
///
public class BmpDecoder : IImageDecoder
{
///
public void Decode(Image image, Stream stream, IDecoderOptions options)
where TColor : struct, IPixel
{
Guard.NotNull(image, "image");
Guard.NotNull(stream, "stream");
new BmpDecoderCore().Decode(image, stream);
}
}
}