.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!



Home >> Articles >> .Net Framework >> Post New Resource Bookmark and Share   

 Subscribe to Articles

Virtualizations like Effects using GDI+ in .NET

Posted By:Hefin Dsouza       Posted Date: August 14, 2009    Points: 25    Category: .Net Framework    URL: http://www.dotnetspark.com  
 

Virtualizations like Effects using GDI+ in .NET .
You can use the logic of this application to Develop your own visualization type effect for your Applications

There are Total 4 Effects That i Created.

The 1st Effect is drawing Bezier's

 

g.DrawBezier(Pens.Red, New Random().Next(0, 10000) * New Random().Next(0, 15), New Random().Next(0, 12) * New Random().Next(0, 20), New Random().Next(0, 250) * New Random().Next(0, 5), New Random().Next(0, 52) * New Random().Next(0, 55), New Random().Next(0, 52) * New Random().Next(0, 10), New Random().Next(0, 100) * New Random().Next(0, 10), New Random().Next(0, 15) * New Random().Next(0, 10), New Random().Next(0, 5) * New Random().Next(0, 20))

'......... Code Minimized due to Many Lines

The 2nd Effect is drawing Bars

g.DrawLine(p, 5, Me.Height, 5, r.Next(0, Me.Height))
'......... Code Minimized due to Many Lines

The 3rd Effect is drawing Alphabets

g.DrawString(c(r.Next(0, c.Length)), New Font("Arial", r.Next(5, 30), FontStyle.Bold), gl, r.Next(0, PictureBox1.Width), r.Next(0, PictureBox1.Height))
g.DrawString(c(r.Next(0, c.Length)), New Font("Arial", r.Next(5, 30), FontStyle.Bold), gl1, r.Next(0, PictureBox1.Width), r.Next(0, PictureBox1.Height))
g.DrawString(c(r.Next(0, c.Length)), New Font("Arial", r.Next(5, 30), FontStyle.Bold), gl, r.Next(0, PictureBox1.Width), r.Next(0, PictureBox1.Height))

'......... Code Minimized due to Many Lines

The 4th Effect is drawing Pie

g.FillEllipse(gl, 0, 0, PictureBox1.Width, PictureBox1.Height)
g.FillPie(gl1, 0, 0, PictureBox1.Width, PictureBox1.Height, i + 30, r.Next(10, 20))
For Demonstration Download Full Source Code
Regards Hefin Dsouza
 Subscribe to Articles

     

Further Readings:

Responses

No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More Articles on C#, ASP.Net, Vb.Net, SQL Server and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend