IRONSOFTWAREHOME
Get Number of Frames In AnyBitmap
using IronSoftware.Drawing;
using System;

// Get and print the number of frames in any multipage GIF or TIFF file
var multiFrameImage = AnyBitmap.FromFile("FILE_PATH").FrameCount;
Console.WriteLine(multiFrameImage);


NuGet Download
PM > Install-Package IronSoftware.System.Drawing
Get Number of Frames In AnyBitmap

Get Number of Frames In AnyBitmap

This feature enables users to retrieve the number of frames within multipage GIF or TIFF files easily.

The multipage file to be read can be converted to AnyBitmap type using the file path and get the frame count saved to a variable using the AnyBitmap.FromFile(@"FILE_PATH").FrameCount method.

View on GitHub

Ready to Get Started?

Nuget Downloads 19,661,086Version:2025.3just released

Key in blue circle

Get your free 30-day Trial Key instantly.

Your trial license will be sent to your email address

No limitations. 100% unlocked. No credit card.

bullet_checkedNo credit card or account creation requiredNo limitations. 100% unlocked. No credit card.
  • Logo Aetna
  • Logo NASA
  • Logo GE
  • Logo Porsche
  • Logo USDA
  • Logo Qatar
Join Millions of Engineers who’ve tried IronPDF
Get Your No-Obligation Consult
Complete the form below or email sales@ironsoftware.com
Your details will always be kept confidential.
Trusted by Millions of Engineers Worldwide
Iron Software's customer logos
Get your free 30-day Trial Key instantly.
No credit card or account creation required