Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Text rendered into Image question

Text rendered into Image question

Scheduled Pinned Locked Moved Visual Basic
graphicsquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    JJeffrey
    wrote on last edited by
    #1

    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.

    D 1 Reply Last reply
    0
    • J JJeffrey

      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.

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups