Click or drag to resize

DbCommandImageAccessorGetFrameCountInImage Method

The number of frames in the stream indicated by the imageStreamIndex

Namespace:  Atalasoft.Imaging.ImageSources.Data
Assembly:  Atalasoft.dotImage (in Atalasoft.dotImage.dll) Version: 11.0.0.0.0.297 (.NET 4.5.2, x86)
Syntax
public virtual int GetFrameCountInImage(
	int imageStreamIndex,
	DbImageSourceFrameCounter frameCounterFn
)

Parameters

imageStreamIndex
Type: SystemInt32
The index of the stream in the source. This is guaranteed to be in the range of: 0 < imageStreamIndex <= GetImageStreamCount()
frameCounterFn
Type: Atalasoft.Imaging.ImageSourcesDbImageSourceFrameCounter
A delegate that can count the number of frames in a stream, which you can use if you haven't stored the framecount elsewhere. To speed performance, it might be better to store the frame count in the data store and not use this delegate.

Return Value

Type: Int32
The number of frames in the stream indicated by the imageStreamIndex

Implements

IDbImageAccessorGetFrameCountInImage(Int32, DbImageSourceFrameCounter)
Remarks
This function is implemented for DbImageSource to use.
See Also