Simulating an LCD screen

Why not find a font that looks like above there are hundreds and use the font.

Just remeber to include the font in the distribution

Andy :)
 
Mmmmmm I wish, that this was a control, and simulates exactly an LCD, if I wish an A to display, not put an A, i wish put all the points of the A.

Sorry for the english ... :-\ :rolleyes:

Thanks
 
Then you have a tedius task you will have to define each letter and draw them on your form as and when needed you will also need to define the form as a grid system so you no where to draw from.

Andy
 
Mmmmmmmmm, If I decide to put it in a array for each letter, what control I need that simulates an array of points (where the letters are putted)?

Thanks
 
Just create a control that you define a 2 dimentional boolean array to hold the screen. You can indivually turn point of the screen on by giving then a true value

e.g.

Screen(10,10) = True

Remember you have to write the onscreen paint as well.

Andy
 
Here is a MUCH simpler idea: draw the letters with a graphics program (i.e. photoshop, or it could even be done in paint), and use bitblt() or drawimage() to paste the letters on the pseudo-LCD screen. Use an offscreen bitmap to persist the graphics and a char array to keep track of letter data (if you need to)
 
Hi !

thanks for the answers, but Im most interested in the graphical appereance of the control, ... somebody have an idea how to get this apperence ?

Thanks
 
Are you asking how to draw it? Cause you could just use paint to draw the letters.

Then you could just create a bitmap object in your app and blit them onto a dc or drawimage() them onto with a graphics object.
 
What I want is the exact apparence of the control that I have posted in the photograph.

I dont know how to make this, and I want some information, about how to make it.

Sorry for my english :rolleyes: , but I cant explain exactly the final apparence.

Thanks
 
i belive what hes trying to get at is how he would actually go about doing that.

If your trying to draw all the letters for all your text, you need to look into something called a font engine. Normall what these do is use a file that contains pictures from letter A to letter Z..seperated by the same number of pixles. Then depending on what letter should be drawn to the screen, it will draw the letters to your form, from the image.

For the rest of the LCD screen, basically it is just an image that looks like a LCD screen, you can either set that as the background of your form, or as an image on your form... Anyway, good luck.. P.S if you need graphics there are tonz of people willing to do to free graphics, or look online..theres tonz of free resources. [edit] though the image you posted looks like just a normal black box on a pretty normal form.
 
Why not just manipulate the bits. Draw everything on a backbuffer, using whatever...tt fonts, images, etc. Then just start applying bitmasks to "turn off" every other pixel (or whatever looks good) and for the rest of the pixels, change the color to green (or whatever, again). Once youre done blit it to your ui.
 
Back
Top