←Select platform

ILeadStream Interface

Summary

The ILeadStream interface supports .NET await/async operations in LEADTOOLS.

Syntax
C#
VB
Objective-C
C++
Java
public interface ILeadStream : IDisposable 
Public Interface ILeadStream 
@interface LTLeadStream : NSObject 
public interface ILeadStream 
public interface class ILeadStream 

Remarks

LEADTOOLS support loading and saving images using asynchronous operations using .NET async and await functionality. This support is included in the .NET Standard toolkit and is added through extensions methods in the .NET Framework toolkit using the Leadtools.Async.dll assembly.

The ILeadStream interface has the following implementation in LEADTOOLS:

Class Description
LeadStream ILeadStream support for any .NET System.IO.Stream.
LeadFileStream ILeadStream support for a physical file disk.
HttpClientLeadStream ILeadStream support for a remote URL.

The main implementation is the LeadStream class that wraps a .NET System.IO.Stream object. LeadStream also contains the LeadStream.Factory class member that can be used to quickly create ILeadStream objects from various input or output sources.

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