Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Ok, so it's probably me, but all I want to do is put an animated image in an ASP.NET Hyperlink control, and I'm having big problems understanding how to save multi-frame images in various formats, using, I think, Save and SaveAdd (in VB). The whole procedure seems complicated and not very well explained anywhere, but what I've gleaned so far after a day of searching is this:

 

An ASP.NET Hyperlink can take a gif for its Image (including animating it),

but .NET doesn't support gifs.

 

.NET supports tiffs,

but an ASP.NET Hyperlink cannot take a tiff for its Image.

 

.NET supports png,

An ASP.NET Hyperlink can take a png for its Image,

but png doesn't support multi-frame

 

mng supports multi-frame,

but .NET doesn't support mng

and an ASP.NET Hyperlink cannot take a mng for its Image.

 

I can't believe that this is how it's supposed to be!

Can anyone simply and gently explain?

 

Thanking you,

Posted
Never tried creating multi frame imgaes with .Net but the framework does support support writing gif images.

 

I thought Bob Powell's GDI+ faq (http://www.BobPowell.net) looked quite reliable? (And it certainly hasn't worked for me) :-

 

Creating animated GIF images.

 

Unfortunately this is not possible using the GDI+ image encoders. The SaveAdd method which can be used to add frames to a multi-frame TIFF image does not work with the GIF encoder and an exception will be thrown.

 

Note that you cannot add frames to existing animated GIF images either.

 

Back to the GDI+ FAQ

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...