|
|
@ -22,7 +22,7 @@ namespace ImageSharp.Formats |
|
|
/// <inheritdoc/>
|
|
|
/// <inheritdoc/>
|
|
|
public void Encode<TColor>(Image<TColor> image, Stream stream) |
|
|
public void Encode<TColor>(Image<TColor> image, Stream stream) |
|
|
where TColor : struct, IPackedPixel, IEquatable<TColor> |
|
|
where TColor : struct, IPackedPixel, IEquatable<TColor> |
|
|
{ |
|
|
{ |
|
|
BmpEncoderCore encoder = new BmpEncoderCore(); |
|
|
BmpEncoderCore encoder = new BmpEncoderCore(); |
|
|
encoder.Encode(image, stream, this.BitsPerPixel); |
|
|
encoder.Encode(image, stream, this.BitsPerPixel); |
|
|
} |
|
|
} |
|
|
|