←Select platform

ConvertToRaster Method

Summary

Converts the stream input to the desired RasterImageFormat according to the LoadDocumentOptions.

Syntax
C#
VB
public IEnumerable<Stream> ConvertToRaster( 
   Stream input, 
   LoadDocumentOptions documentOptions, 
   RasterImageFormat outputFormat, 
   string workingDirectory 
) 
Public Function ConvertToRaster( 
   ByVal input As Stream, 
   ByVal documentOptions As LoadDocumentOptions, 
   ByVal outputFormat As RasterImageFormat, 
   ByVal workingDirectory As String 
) As IEnumerable(Of Stream) 

Parameters

input

Stream input containing the image or document to convert.

documentOptions

The document options to use when loading the input.

outputFormat

The desired output format to convert the input to.

workingDirectory

The path to the directory where temporary work is to be done. If null is passed, the directory will default to the current system temporary folder.

Return Value

Returns an IEnumerable stream.

Remarks

The returnedIEnumerable stream will contain either 1 stream if the output format is multipage or multiple streams if the input was multipage and the output format selected is single-page.

Requirements

Target Platforms

Help Version 20.0.2020.4.3
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.CloudServices Assembly