Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

GDI+ Dot Matrix Display (Silent Radio)

Status
Not open for further replies.

apc2004

Programmer
Aug 23, 2005
38
GB
Hi,

Over the last few months I have been trying to break up the tedious nature of my day to day programming job. I have been creating & experimenting with animating GDI+ WinForm controls during lunch hours and out of office hours.

As a new control I want to create a Dot Matrix LED Display that scrolls text to immitate an old Java Applet I found on a website many years ago.

I am looking for some advice and hopefully a basic starting point as I am not really sure how to go about the controlling of the LED's on and off or how to draw such a large amount of LED's in a manor that will not cause performace issues etc...

Any advice or code snippits would be most appriciated... [smile]
 
Create a class called LED which has:

bool On;
Point Location;
DrawLED(Graphics g);

then you can just create an array of these led's, set their location properties, specify if they are on or off, and then tell them to draw when your control paints, passing in the e.Graphics of the control. Then each LED will take care of itself.

In terms of specifying which LED is on or off, you will want to create a separate class that takes care of that.
 
Wow! Spot on, I prefer to write my own stuff, but a full working example is a great way to start... maybe room for some improvements [wink]

Thanks... [smile]
 
I'll be more impressed when you fire that data out to a real LCD Display - such as a Telephone CallerID Box :)
 
JurkMonkey...

You never know... today WinForm controls, tomorrow THE WORLD!!!!!!! Muha ha ha ha haaaaaa....

[wink]
 
An unhandled exception has occurred in "the world"

v Details Send Bug Report
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top