473,385 Members | 1,813 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Fade Images

Hi,

I draw some images on my canvas using Graphics.DrawImage() in a
component class. After the canvas gets loaded I would like to apply
some animations to the images. Is there any event where I can do this
apart from paint event?

Pls help. Thanks in advance.

Dec 27 '07 #1
2 1757
On Thu, 27 Dec 2007 06:22:42 -0800, <vi********@rediffmail.comwrote:
I draw some images on my canvas using Graphics.DrawImage() in a
component class. After the canvas gets loaded I would like to apply
some animations to the images. Is there any event where I can do this
apart from paint event?
No, but you can create your own for the purpose. Easiest would be to use
a System.Windows.Forms.Timer object to raise an event at specific
intervals. This is often sufficient for basic animation needs.

Pete
Dec 27 '07 #2

Hi Peter,

Thanks a lot for your suggestion. Its really very useful to me.
On Dec 27, 11:43*pm, "Peter Duniho" <NpOeStPe...@nnowslpianmk.com>
wrote:
On Thu, 27 Dec 2007 06:22:42 -0800, <vijay_3...@rediffmail.comwrote:
I draw some images on my canvas using Graphics.DrawImage() in a
component class. After the canvas gets loaded I would like to apply
some animations to the images. Is there any event where I can do this
apart from paint event?

No, but you can create your own for the purpose. *Easiest would be to use *
a System.Windows.Forms.Timer object to raise an event at specific *
intervals. *This is often sufficient for basic animation needs.

Pete
Dec 28 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Acer | last post by:
Hi, Can somebody help me to create a php function which show an image, fade-out to another images ? thx
2
by: Susanna | last post by:
Hi all, I'm using the following slideshow script that I found on the web to display changing images with a crossfade effect. Eventually I will be adding many more images to the slideshow. The...
1
by: Robert Skidmore | last post by:
I am building an application that will fade one panel to another panel. Both panels will have picture boxes in them (thumbnails). This is what I have tried: private void...
1
by: jase_dukerider | last post by:
Hi I have an assignment to hand in shortly for which I am after some guidance. The task is to read a WAV file, request a fade in /out time for the track from the user and the do the fade by...
2
by: ross | last post by:
I am attempting to develop a site that will allow photos to fade in gradually one over another when the link is clicked to show the next picture. I hope that I have described this correctly. Any...
4
by: Chris Lieb | last post by:
Hi, I am writing a class in JavaScript to cause a repeating fade effect. The fade class takes care of the fading and the rgb class takes care of manipulating rgb values: function rgb(red,...
1
by: Luciano A. Ferrer | last post by:
Hello! Im trying to do a few fade effects here http://relojurbano.com.ar/scalda/baseporque.php using fadomatic ( http://chimpen.com/fadomatic/ ) I dont know if fadomatic is a good solution...
1
by: John Smith | last post by:
I'm looking for javascript that will rotate 3-6 jpg images with a fade to white transition between images. I've got a script that will handle the rotation but not the fade. Maybe it can't be...
6
by: Jake Barnes | last post by:
Please go look at this page using FireFox: http://www.ralphkrubner.com/Commercial/ Click the "Next" button a few times. The images fade out and then fade in. It's a nice effect. Now do try...
3
techtherapy
by: techtherapy | last post by:
Using fade.js for a simple rotating image gallery I discover that everything worked flawless in Firefox and IE 6 & 7 but when I tried testing it in Safari 3, the images were just MIA, in fact the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.