Table of contents

ProactiveImageSourceAdapter

The ProactiveImageSourceAdapter class is an abstract class that extends the ImageSourceAdapter class. It provides interfaces for proactively fetching images in a separate thread.

Definition

Namespace: Dynamsoft.Utility

Assembly: Dynamsoft.Utility.dll

Inheritance: ImageSourceAdapter -> ProactiveImageSourceAdapter

public class ProactiveImageSourceAdapter : ImageSourceAdapter

Methods

Method Description
FetchImage This method needs to be implemented in the derived class. It is called in a loop in the Fetching thread to obtain images.
SetImageFetchInterval Sets the time interval for the ImageSource to wait before attempting to fetch another image to put in the buffer.
GetImageFetchInterval Gets the time interval for the ImageSource to wait before attempting to fetch another image to put in the buffer.
HasNextImageToFetch Determines whether there are more images left to fetch.
StartFetching Starts fetching images.
StopFetching Stops fetching images.
Dispose Releases all resources used by current object.

FetchImage

This method needs to be implemented in the derived class. It is called in a loop in the Fetching thread to obtain images.

abstract ImageData FetchImage()

Return Value

Returns an ImageData object representing the fetched image.

See Also

ImageData

SetImageFetchInterval

Sets the time interval for the ImageSource to wait before attempting to fetch another image to put in the buffer.

void SetImageFetchInterval(int milliseconds)

Parameters

  • [in] milliseconds Specifies the wait time in milliseconds. If setting to -1, the ImageSource does not proactively fetch images.

GetImageFetchInterval

Gets the time interval for the ImageSource to wait before attempting to fetch another image to put in the buffer.

int GetImageFetchInterval()

Return Value

Returns the wait time in milliseconds. If the value is -1, the ImageSource does not proactively fetch images.

HasNextImageToFetch

Determines whether there are more images left to fetch.

override bool HasNextImageToFetch()

Return Value

Returns true if there are more images left to fetch, false otherwise.

StartFetching

Starts fetching images.

override void StartFetching()

StopFetching

Stops fetching images.

override void StopFetching()

Dispose

Releases all resources used by current object.

override void Dispose()

This page is compatible for:

Is this page helpful?

YesYes NoNo

In this article: