Browse Source

Allowing the same stream to both load an save an image

Former-commit-id: 07ffcdac4ff1be15cbaa7bb79b304f5eaac596b0
Former-commit-id: 5f21873f14c3ee29c1bacb447159dde7090f2552
pull/17/head
James South 12 years ago
parent
commit
9491a03db5
  1. 2
      src/ImageProcessor/ImageFactory.cs

2
src/ImageProcessor/ImageFactory.cs

@ -1026,6 +1026,8 @@ namespace ImageProcessor
{
if (this.ShouldProcess)
{
// Allow the same stream to be used as for input.
stream.Seek(0, SeekOrigin.Begin);
this.Image = this.CurrentImageFormat.Save(stream, this.Image);
}

Loading…
Cancel
Save