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. C#
  4. Bitmap Creation

Bitmap Creation

Scheduled Pinned Locked Moved C#
graphicsquestion
4 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.
  • A Offline
    A Offline
    allenmpcx
    wrote on last edited by
    #1

    I have a program right now that can read from a bitmap and then paint each pixel to a screen (I do this instead of choosing Graphics.DrawImage for transparency reasons). However, I wanted to take any character (like 'a' or ';'), and write it to a Bitmap. Is there a way to do this? Mike - I love to program!

    G 1 Reply Last reply
    0
    • A allenmpcx

      I have a program right now that can read from a bitmap and then paint each pixel to a screen (I do this instead of choosing Graphics.DrawImage for transparency reasons). However, I wanted to take any character (like 'a' or ';'), and write it to a Bitmap. Is there a way to do this? Mike - I love to program!

      G Offline
      G Offline
      Guffa
      wrote on last edited by
      #2

      Use the DrawString of the Graphics class to draw text. Use the FromImage method to get a Graphics object for the bitmap. --- b { font-weight: normal; }

      A 1 Reply Last reply
      0
      • G Guffa

        Use the DrawString of the Graphics class to draw text. Use the FromImage method to get a Graphics object for the bitmap. --- b { font-weight: normal; }

        A Offline
        A Offline
        allenmpcx
        wrote on last edited by
        #3

        So I create a graphics object, then call DrawString, then I call the FromImage method of the Bitmap class and pass in the graphics object? Mike - I love to program!

        G 1 Reply Last reply
        0
        • A allenmpcx

          So I create a graphics object, then call DrawString, then I call the FromImage method of the Bitmap class and pass in the graphics object? Mike - I love to program!

          G Offline
          G Offline
          Guffa
          wrote on last edited by
          #4

          No, the other way around. You use the FromImage method of the Graphics class to create the Graphics object for the bitmap, then you use the Graphics object to draw on the bitmap. --- b { font-weight: normal; }

          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