←Select platform

Factory Class

Summary

Factory class that can be used to quickly create ILeadStream objects form various input or output sources.

Syntax
C#
VB
public sealed abstract class Factory 
Public NotInheritable MustInherit Class Factory 

Remarks

LeadStream.Factory is a class containing helper methods that can be used to quickly create ILeadStream objects form various input or output sources. For instance:

C#
// From a .NET stream. This returns LeadStream 
ILeadStream leadStream1 = LeadStream.Factory.FromStream(stream); 
// From a file on disk. This returns LeadFileStream 
ILeadStream leadStream2 = LeadStream.Factory.OpenFile(fileName); 
// From a a URL. This returns HttpClientLeadStream 
ILeadStream leadStream3 = await LeadStream.Factory.FromUri(new Uri(url))) 

Refer to RasterCodecs Async Operations for more information and examples.

Requirements

For .NET Framework: A reference to the Leadtools.Async.dll assembly is required to use this functionality.

For .NET Standard: This functionality is included in the Leadtools.dll assembly.

Target Platforms

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

Leadtools Assembly