Click or drag to resize

DbSqlImageAccessorCreateGetFrameCountCommand Method

A command that returns the frame count for an image. If this method returns null, the frame count will be determined by decoding the image stream. If not null, this command should result in a single row dataset with the frame count in the first column. If the frame count is stored separately from the image stream, implementing this method can greatly increase performance (especially first access). This command should not be associated with any connection.

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
protected override IDbCommand CreateGetFrameCountCommand(
	IDbConnection conn,
	int imageStreamIndex
)

Parameters

conn
Type: System.DataIDbConnection
A connection to the database.
imageStreamIndex
Type: SystemInt32
The index of the image stream in the source.

Return Value

Type: IDbCommand
A command that returns the frame count for an image.
See Also