Click or drag to resize

ScriptUtilGetImageFrameCount Method

Gets the number of frames in a multi-framed image file.

Namespace: Compiled.EDD.Scripting
Assembly: Compiled.EDD.Scripting (in Compiled.EDD.Scripting.dll) Version: 9.0.0.0-142fa9725
Syntax
C#
public static int GetImageFrameCount(
	string imageFile
)

Parameters

imageFile  String
The image file to check.

Return Value

Int32
The number of frames (i.e. pages) in a image file.
Exceptions
ExceptionCondition
NotSupportedExceptionThrown if the script library was not initialized correctly.
Remarks
Use this to get the number of pages in a PDF or TIFF file.
See Also