diff --git a/src/ImageProcessorCore/Image/Image.cs b/src/ImageProcessorCore/Image/Image.cs
index a9377636d..3c1e78872 100644
--- a/src/ImageProcessorCore/Image/Image.cs
+++ b/src/ImageProcessorCore/Image/Image.cs
@@ -198,10 +198,11 @@ namespace ImageProcessorCore
///
/// The stream to save the image to.
/// Thrown if the stream is null.
- public void Save(Stream stream)
+ public Image Save(Stream stream)
{
Guard.NotNull(stream, nameof(stream));
this.CurrentImageFormat.Encoder.Encode(this, stream);
+ return this;
}
///
@@ -210,10 +211,11 @@ namespace ImageProcessorCore
/// The stream to save the image to.
/// The format to save the image as.
/// Thrown if the stream is null.
- public void Save(Stream stream, IImageFormat format)
+ public Image Save(Stream stream, IImageFormat format)
{
Guard.NotNull(stream, nameof(stream));
format.Encoder.Encode(this, stream);
+ return this;
}
///
@@ -222,10 +224,11 @@ namespace ImageProcessorCore
/// The stream to save the image to.
/// The encoder to save the image with.
/// Thrown if the stream is null.
- public void Save(Stream stream, IImageEncoder encoder)
+ public Image Save(Stream stream, IImageEncoder encoder)
{
Guard.NotNull(stream, nameof(stream));
encoder.Encode(this, stream);
+ return this;
}
///