Table of contents

ImageSourceAdapter

The ImageSourceAdapter class provides an interface for fetching and buffering images. It is an abstract class that needs to be implemented by a concrete class to provide actual functionality.

Definition

Namespace: Dynamsoft.Core.Maui

Assembly: Dynamsoft.Core.Maui

class ImageSourceAdapter

Methods

Method Description
StartFetching Start fetching images from the source to the Video Buffer of ImageSourceAdapter.
StopFetching Stop fetching images from the source to the Video Buffer of ImageSourceAdapter.
SetMaximumImageCount Sets the maximum number of images that can be buffered at any time.
GetMaximumImageCount Returns the maximum number of images that can be buffered.
GetImageCount Returns the current number of images in the buffer.
IsBufferEmpty Determines whether the buffer is currently empty.
ClearBuffer Clears all images from the buffer, resetting the state for new image fetching.
SetColourChannelUsageType Sets the usage type for color channels in images.
GetColourChannelUsageType Returns the current usage type for color channels in images.

StartFetching

Start fetching images from the source to the Video Buffer of ImageSourceAdapter.

void StartFetching();

StopFetching

Stop fetching images from the source to the Video Buffer of ImageSourceAdapter.

void StopFetching();

SetMaximumImageCount

Sets the maximum number of images that can be buffered at any time.

void SetMaximumImageCount(int count);

Parameters

[in] count: The maximum capability of the Video Buffer.

GetMaximumImageCount

Get the maximum number of images that can be buffered.

int GetMaximumImageCount();

Return Value

The maximum capability of the Video Buffer.

GetImageCount

Get the current number of images in the buffer.

int GetImageCount();

Return Value

The current number of images in the buffer.

IsBufferEmpty

Determines whether the buffer is currently empty.

bool IsBufferEmpty();

Return Value

A boolean value that indicates whether the Video Buffer is empty.

ClearBuffer

Clears all images from the buffer, resetting the state for new image fetching.

void ClearBuffer();

SetColourChannelUsageType

Sets the usage type for color channels in images.

void SetColourChannelUsageType(EnumColourChannelUsageType type);

Parameters

[in] type: One of the EnumColourChannelUsageType that indicates whether the colour channel usage type.

Return Value

One of the EnumColourChannelUsageType that indicates whether the colour channel usage type.

GetColourChannelUsageType

Get the current usage type for color channels in images.

EnumColourChannelUsageType GetColourChannelUsageType();

Return Value

A EnumColourChannelUsageType value that indicates whether the colour channel usage type.

This page is compatible for:

Is this page helpful?

YesYes NoNo

In this article: