Click here to Skip to main content
13,248,295 members (36,706 online)
Click here to Skip to main content
Add your own
alternative version


77 bookmarked
Posted 29 Aug 2002

A C# water effect picture control

, 29 Aug 2002
Rate this:
Please Sign up or sign in to vote.
A C# implementation of the popular water surface effect.

Cool eh ?


This control is a C# implementation of the well known water effect. There are already two implementations of this algorithm on CodeProject: Really cool visual FX - a C++ variant - and a OpenGL Interactive water effect.

The algorithm itself is well described here and here.

How to use it

The control itself is derived from System.Windows.Forms.Panel. So all you have to do is to place a standard PictureBox control onto your form and change the type of this control to WaterEffectControl.

Then adjust the image source property as follows:

waterControl.ImageBitmap = ((System.Drawing.Bitmap)

Now run the program, and move the mouse over the image while the left button is pressed. The effect is clearly better than the picture above shows.



This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


About the Author

Christian Tratz
Web Developer
Germany Germany
If you are not living on the edge you are wasting space Wink | ;)

You may also be interested in...

Comments and Discussions

GeneralF U C K I N G C O O L!!! Pin
iccb101316-Jul-09 21:10
membericcb101316-Jul-09 21:10 
Generalhi i want to draw an drawing like a rug Pin
cuteAisha29-Aug-07 22:45
membercuteAisha29-Aug-07 22:45 
Generalrunning slow Pin
stjds7-Jan-07 13:57
memberstjds7-Jan-07 13:57 
GeneralBetter result Pin
Saied Javadi8-Jul-06 4:58
memberSaied Javadi8-Jul-06 4:58 
Thanks for your goold control.
When i compare the results of your Water Effect with another on in
i can see the better simulation in second program. one of differences is when i clicked on sample picture
it start with big wave instead small wave.
Thansk again.
QuestionWhy not a PictureBox? Pin
jeffreylreed19-May-04 6:49
memberjeffreylreed19-May-04 6:49 
AnswerRe: Why not a PictureBox? Pin
Christian Tratz19-May-04 7:51
memberChristian Tratz19-May-04 7:51 
GeneralFix for the bug mentioned below Pin
Matthew Watosn22-Apr-04 1:15
memberMatthew Watosn22-Apr-04 1:15 
GeneralBug Pin
RawSteel14-Apr-04 7:49
memberRawSteel14-Apr-04 7:49 
GeneralBug Pin
Sefai14-Aug-03 2:25
memberSefai14-Aug-03 2:25 
GeneralRe: Bug Pin
aguisoft__21-Mar-10 18:45
memberaguisoft__21-Mar-10 18:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.171114.1 | Last Updated 30 Aug 2002
Article Copyright 2002 by Christian Tratz
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid