Groups | Blog | Home
all groups > dotnet drawing api > june 2004 >

dotnet drawing api : Any function to identify it is animated Gif or not animated Gif


john NO[at]SPAM e-classifiedad.com
6/7/2004 9:30:46 PM
Dear all,
May be this might be a silly question but just want to know whether
Asp.net/.Net framework has any function or class to identity whether
the image is animated or not animated gifs.

I am uploading an image from users and want to check before saving
into the database whether the file is is good(non animated gif and
jpeg) or not.

Thanks
John
Bob Powell [MVP]
6/8/2004 10:40:51 AM
Use the ImageAnimator.CanAnimate static method to determine if the image has
animated frames.

You can do this the hard way too by looking at the images FrameDimensionList
and using the GetFrameCount method with a value of FrameDimension.Time

--
Bob Powell [MVP]
Visual C#, System.Drawing

Image transition effects, snap-to-grid and Layered Windows are
all discussed in May's edition of Well Formed for C# or VB programmers
http://www.bobpowell.net/currentissue.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/gdiplus_faq.htm

The GDI+ FAQ RSS feed: http://www.bobpowell.net/faqfeed.xml
Windows Forms Tips and Tricks RSS: http://www.bobpowell.net/tipstricks.xml
Bob's Blog: http://bobpowelldotnet.blogspot.com/atom.xml






[quoted text, click to view]

john NO[at]SPAM e-classifiedad.com
6/9/2004 12:28:53 PM
Thanks! Bob
John
AddThis Social Bookmark Button