Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi all!

 

I'm interested in know how to start developing an application that simulates an LCD screen, like this:

 

http://marcbernal.eresmas.net/dibujo.bmp

 

I'm very losted, i hope anyone can help me.

 

Thanks

Posted

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

Posted

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

Code today gone tomorrow!
Posted

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

Posted

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

Code today gone tomorrow!
  • Leaders
Posted
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)
[sIGPIC]e[/sIGPIC]
  • 2 weeks later...
Posted

Hi !

 

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

 

Thanks

  • Leaders
Posted

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.

[sIGPIC]e[/sIGPIC]
Posted

What I want is the exact apparence of the control that I have posted in the photograph.

 

I don't know how to make this, and I want some information, about how to make it.

 

Sorry for my english :rolleyes: , but I can't explain exactly the final apparence.

 

Thanks

Posted

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.

  • 1 month later...
Posted
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 you're done blit it to your ui.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...