ImageShapeGetFrameCount Method (String, Object, GetWebCredentialsEventHandler)

Extract the number of frames from the image data.

Namespace:  TallComponents.PDF.Shapes
Assembly:  TallComponents.PDF.Kit (in TallComponents.PDF.Kit.dll) Version: 4.0.102.0
Syntax
public static int GetFrameCount(
	string path,
	Object sender,
	GetWebCredentialsEventHandler getWebCredentials
)
GetWebCredentialsEventHandler
The event handlers to query for the web credentials.

Return Value

Type: Int32
Number of frames in this image.
Examples
VB.NET
' Get the number of frames
Dim frameCount As Integer = ImageShape.GetFrameCount( path )
Dim index As Integer

For index = 0 To frameCount - 1
   ' Load the image for the frame
   Dim image as ImageShape = New ImageShape(path, index)

   'Create new page and append to document
   Dim page As New Page(image.Width, image.Height)
   document.Pages.Append(page)
   page.VisualOverlay.Add(image)
Next index
See Also