Text rendered into Image question
-
First, a thanks for reading this and another if you decide to reply. I basically am going to start a project that will take in a user-entered text in a text box and create from that an image for display on a LCD panel (pixel formatting) Looking through VB specs, I come across the Graphics.DrawString method which "Draws the specified text string at the specified location with the specified Brush and Font objects" and will most likely employ CreateGraphics to put it up on screen for display preview. The formatting into the Pixel format will be done after confirmation and the end result is a string of bits to be sent to the LCD panel. My question is to you, my great and intellegient friends, is : Am I approaching this in the best way or will I encounter some difficult problems and I should consider another approach now before I get too deeply entrenched in my path. I wish to ask of all of your experience in this. I will try to answer any questions to my situation as afast as I can. Thank you.
-
First, a thanks for reading this and another if you decide to reply. I basically am going to start a project that will take in a user-entered text in a text box and create from that an image for display on a LCD panel (pixel formatting) Looking through VB specs, I come across the Graphics.DrawString method which "Draws the specified text string at the specified location with the specified Brush and Font objects" and will most likely employ CreateGraphics to put it up on screen for display preview. The formatting into the Pixel format will be done after confirmation and the end result is a string of bits to be sent to the LCD panel. My question is to you, my great and intellegient friends, is : Am I approaching this in the best way or will I encounter some difficult problems and I should consider another approach now before I get too deeply entrenched in my path. I wish to ask of all of your experience in this. I will try to answer any questions to my situation as afast as I can. Thank you.
If you want to preivew the image on screen, then yes, you have to use DrawString to render the string to an Image (Bitmap) object so you can show it.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008