Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
| Search | Today's Posts | Mark Forums Read
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old April 17th, 2007, 11:19 AM
Registered User
 
Join Date: Apr 2007
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to use animated gifs?

Sorry I have another question already. I'm wondering how load an animated .gif that only plays once when loaded.

  #2 (permalink)  
Old April 17th, 2007, 11:33 AM
Wrox Author
Points: 13,255, Level: 49
Points: 13,255, Level: 49 Points: 13,255, Level: 49 Points: 13,255, Level: 49
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2005
Location: Ohio, USA
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

This isn't a C# Question, more a graphic design question. In any case the answer to this is: when creating an animated gif in Adobe ImageReady, for example, you have to tell the gif not to 'loop' which means the animation is played one time.

hth.



================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from planoie's profile^^
^^Modified text taken from gbianchi profile^^
================================================== =========
Technical Editor for: Professional Search Engine Optimization with ASP.NET
http://www.wiley.com/WileyCDA/WileyT...470131470.html
================================================== =========
Why can't Programmers, program??
http://www.codinghorror.com/blog/archives/000781.html
================================================== =========
  #3 (permalink)  
Old April 17th, 2007, 11:43 AM
Registered User
 
Join Date: Apr 2007
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Oh cool thanks that'll make it easier. I'm still not clear on how to load it into the program though? Is it the same as .bmp's because it crashes when I do that. Also, if I put the .gif and a .wav in an object will the resource be removed at the end of the .gif or do I need to remove it myself at that point?

And I have another question on top of this one now, sorry I just started learning C#. Say I have an object, and a random point on the screen, and I want the object to rotate to face it. I can get it to rotate and face it no problem, but, I don't know how to let it know which way to turn. If its current angle is 0 degrees the point it needs to face is at 30 degrees(which will be randomly changing) how do I let it know to turn counterclockwise in that instance and not clockwise, and vise versa when the point changes its location.
  #4 (permalink)  
Old April 17th, 2007, 11:54 AM
Wrox Author
Points: 13,255, Level: 49
Points: 13,255, Level: 49 Points: 13,255, Level: 49 Points: 13,255, Level: 49
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2005
Location: Ohio, USA
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

....Your doing graphics programming. Are you using the XNA Framework?

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from planoie's profile^^
^^Modified text taken from gbianchi profile^^
================================================== =========
Technical Editor for: Professional Search Engine Optimization with ASP.NET
http://www.wiley.com/WileyCDA/WileyT...470131470.html
================================================== =========
Why can't Programmers, program??
http://www.codinghorror.com/blog/archives/000781.html
================================================== =========


Similar Threads
Thread Thread Starter Forum Replies Last Post
Book gifs bschormann BOOK: Professional ASP.NET 2.0 and Special Edition; ISBN: 978-0-7645-7610-2; ISBN: 978-0-470-04178-9 0 May 30th, 2007 11:05 AM
Hide all Gifs in a document bonekrusher Java Basics 0 August 7th, 2006 08:14 PM
play animated gifs on an access form dartcoach Access 6 June 17th, 2005 04:39 PM
inserting gifs in dreamweaver with right size amc Dreamweaver (all versions) 6 May 4th, 2004 05:36 PM
Embedded gifs and forms fixitman Access 4 October 16th, 2003 12:47 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.