mauleTTT Posted June 15, 2003 Posted June 15, 2003 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 Quote
a_jam_sandwich Posted June 15, 2003 Posted June 15, 2003 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 :) Quote Code today gone tomorrow!
mauleTTT Posted June 15, 2003 Author Posted June 15, 2003 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 Quote
a_jam_sandwich Posted June 15, 2003 Posted June 15, 2003 http://www.abstractfonts.com/fonts/search/full_listing.htm?kw=dot Has some that look simular Quote Code today gone tomorrow!
a_jam_sandwich Posted June 15, 2003 Posted June 15, 2003 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 Quote Code today gone tomorrow!
mauleTTT Posted June 15, 2003 Author Posted June 15, 2003 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 Quote
a_jam_sandwich Posted June 15, 2003 Posted June 15, 2003 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 Quote Code today gone tomorrow!
mauleTTT Posted June 15, 2003 Author Posted June 15, 2003 IT's a good idea, i will think in it, i'm really confused ... A lot of thanks jam_sandwich :D :D Quote
Leaders snarfblam Posted June 16, 2003 Leaders Posted June 16, 2003 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) Quote [sIGPIC]e[/sIGPIC]
mauleTTT Posted June 26, 2003 Author Posted June 26, 2003 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 Quote
Leaders snarfblam Posted June 29, 2003 Leaders Posted June 29, 2003 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. Quote [sIGPIC]e[/sIGPIC]
mauleTTT Posted July 4, 2003 Author Posted July 4, 2003 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 Quote
micon Posted July 5, 2003 Posted July 5, 2003 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. Quote
vvvvOOOO Posted August 24, 2003 Posted August 24, 2003 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. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.