473,386 Members | 1,694 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,386 software developers and data experts.

Adding transition effects between images on a Windows Form

I'm new to C# and I'm trying to get some "toy" programs running to get
familliar with it. So I want to make a slideshow program that will display
one image after another, and have some sort of transition between the
images. Searching for a library to do this, I've found LEADTOOLS (much $$$,
but looks impressive). And a reference to something that Bob Powell did in
an online magazine that's no longer available.

Are there no other libraries for doing transitions?

I also found a lot of entries on doing this on a web page using the
DXTransform filters/effects. I don't want to have a web browser to do this
if I don't need to - is there some way to use these transform filters in a
Windows Forms app?

Thanks.
Feb 20 '08 #1
4 6888
Warrick,

I would ^seriously^ consider using WPF for this. You could easily
create two images, and then change the opacity of the images along animation
timelines (one going from 0 to 100, the other from 100 to 0 along any curve
you want).

Doing it in GDI would just be too painful knowing that you can do it
MUCH easier in WPF.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Warrick Wilson" <wa*****@cwwilson.comwrote in message
news:O3**************@TK2MSFTNGP03.phx.gbl...
I'm new to C# and I'm trying to get some "toy" programs running to get
familliar with it. So I want to make a slideshow program that will display
one image after another, and have some sort of transition between the
images. Searching for a library to do this, I've found LEADTOOLS (much
$$$, but looks impressive). And a reference to something that Bob Powell
did in an online magazine that's no longer available.

Are there no other libraries for doing transitions?

I also found a lot of entries on doing this on a web page using the
DXTransform filters/effects. I don't want to have a web browser to do this
if I don't need to - is there some way to use these transform filters in a
Windows Forms app?

Thanks.

Feb 20 '08 #2
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.comwrote in
message news:Oe**************@TK2MSFTNGP06.phx.gbl...
Warrick,

I would ^seriously^ consider using WPF for this. You could easily
create two images, and then change the opacity of the images along
animation timelines (one going from 0 to 100, the other from 100 to 0
along any curve you want).

Doing it in GDI would just be too painful knowing that you can do it
MUCH easier in WPF.
Thanks for the reply. I'm not sure that I'm wanting to jump to WPF just yet,
but will consider it (it's on the list of "things to look at").

I was hoping to find someway of using the things descibed here
(http://msdn2.microsoft.com/en-us/lib...47(VS.85).aspx) so that I
could get the Checkboard, Blinds, and BarnDoor effects between images.
Feb 20 '08 #3
Warrick,

You could do that in a windows forms app, but my understanding of DX is
that rendering is a different beast than in say, GDI and you would have to
make the calls to the DX layer to make the transitions yourself (the filters
you are pointing to, I believe, are specific to IE and it's processing
pipeline for images).

While WPF might be on your todo list, this might be the perfect project
to get your feet wet.

You could do the transitions in GDI, but depending on the transition, it
might be difficult. Changing the opacity of two images is fairly simple,
but the barn doors, for example, that's harder, as you would have to
transform the image in 3D space to get the effect.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
"Warrick Wilson" <wa*****@cwwilson.comwrote in message
news:uF**************@TK2MSFTNGP03.phx.gbl...
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.comwrote
in message news:Oe**************@TK2MSFTNGP06.phx.gbl...
>Warrick,

I would ^seriously^ consider using WPF for this. You could easily
create two images, and then change the opacity of the images along
animation timelines (one going from 0 to 100, the other from 100 to 0
along any curve you want).

Doing it in GDI would just be too painful knowing that you can do it
MUCH easier in WPF.

Thanks for the reply. I'm not sure that I'm wanting to jump to WPF just
yet, but will consider it (it's on the list of "things to look at").

I was hoping to find someway of using the things descibed here
(http://msdn2.microsoft.com/en-us/lib...47(VS.85).aspx) so that I
could get the Checkboard, Blinds, and BarnDoor effects between images.

Feb 20 '08 #4
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.comwrote in
message news:%2****************@TK2MSFTNGP02.phx.gbl...
Warrick,

You could do that in a windows forms app, but my understanding of DX is
that rendering is a different beast than in say, GDI and you would have to
make the calls to the DX layer to make the transitions yourself (the
filters you are pointing to, I believe, are specific to IE and it's
processing pipeline for images).

While WPF might be on your todo list, this might be the perfect project
to get your feet wet.

You could do the transitions in GDI, but depending on the transition,
it might be difficult. Changing the opacity of two images is fairly
simple, but the barn doors, for example, that's harder, as you would have
to transform the image in 3D space to get the effect.
I found a sample project from 2005 that did this with some interop and
showing the wipe effect. However, it doesn't run when I get it into VS 2008
and compile. Since I'm not familiar with interop yet (also on the list), I
suspect that there are things that changed in the intervening 3 years. I
keep getting AccessInteropViolation (or something like that).

I think I'll take a look at the WPF stuff over the next couple of days...

Thanks.
Feb 20 '08 #5

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

Similar topics

6
by: Hamed | last post by:
Hello I have employed as a developer in a software company that its team uses FoxPro / VB 6.0 / VC++ 6.0 as the developing tools and newly is going to migrate to VS.NET. There is a project...
0
by: Sinisa | last post by:
I have a Windows form which has multiple groups of the same window controls. I wanted to create a control class that has the standard controls in one. something like: public class Sensor :...
0
by: Fabrizio | last post by:
HI In my C# aplication, I'm adding as reference CrystalDecisions.Windows.Form dll, version 9.1.5000.0 Everything works fine if i'm setting the reportsource property at design time. But when I try...
9
by: Rajat Tandon | last post by:
Hello there, I am relatively new to the newsgroups and C#. I have never been disappointed with the groups and always got the prompt replies to my queries.This is yet another strange issue, I am...
2
by: Siddharth Jain | last post by:
Hi, i have made a windows form in which there is a data grid which should slide in when a button is clicked. Since i am new to .NET i haven't been able to figure this out even after a lot of...
7
by: moondaddy | last post by:
I'm painting images onto a windows form using this method: e.Graphics.DrawImageUnscaled(m_ItemImage, x, y) every time I select a product. However, some products don't have an image so when a...
2
by: | last post by:
Is it possible to use IE transition effects (e.g. progid:DXImageTransform.Microsoft.Fade(Duration=2)">) to smooth "classic" (IE non-ATLAS) datagrid paging? How do you wire up the transition effect...
9
by: mohit.akl | last post by:
Hey guys & gals I am havng trouble modifying the control box. I want to make the maximise button invisible and have minimisise button instead of it. Like this _ X (not like _ o X ) How...
5
sword117
by: sword117 | last post by:
im trying to use frames to create a video in the windows form application everything works if the first FOR is <10, if is > to 10 an error appears saying "FileNotFoundException was unhandled". i need...
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: 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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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.