ApiExamples.ExRendering.SaveToImageStream C# (CSharp) Метод

SaveToImageStream() приватный Метод

private SaveToImageStream ( ) : void
Результат void
        public void SaveToImageStream()
        {
            //ExStart
            //ExFor:Document.Save(Stream, SaveFormat)
            //ExSummary:Saves a document page as a BMP image into a stream.
            Document doc = new Document(MyDir + "Rendering.doc");

            MemoryStream stream = new MemoryStream();
            doc.Save(stream, SaveFormat.Bmp);

            // Rewind the stream and create a .NET image from it.
            stream.Position = 0;

            // Read the stream back into an image.
            Image image = Image.FromStream(stream); 
            //ExEnd
        }