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. How to Draw String

How to Draw String

Scheduled Pinned Locked Moved C#
tutorialquestion
5 Posts 3 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.
  • R Offline
    R Offline
    Rassul Yunussov
    wrote on last edited by
    #1

    I want to draw string, but in specific way... I got a curved line, for example sinusoid, and i want to draw text on it exactly... How to do it?

    S 1 Reply Last reply
    0
    • R Rassul Yunussov

      I want to draw string, but in specific way... I got a curved line, for example sinusoid, and i want to draw text on it exactly... How to do it?

      S Offline
      S Offline
      Sau Fan Lee
      wrote on last edited by
      #2

      First, create a System.Drawing.Graphics object. Then draw your curve onto it using Graphics.DrawCurve() method, or if your curve is an image, use the Graphics.DrawImage() method. After that, use the Graphics.DrawString() method to write the text you want onto the curve.


      > whoami The system is unable to identify you when you don't even know your name!

      R 1 Reply Last reply
      0
      • S Sau Fan Lee

        First, create a System.Drawing.Graphics object. Then draw your curve onto it using Graphics.DrawCurve() method, or if your curve is an image, use the Graphics.DrawImage() method. After that, use the Graphics.DrawString() method to write the text you want onto the curve.


        > whoami The system is unable to identify you when you don't even know your name!

        R Offline
        R Offline
        Rassul Yunussov
        wrote on last edited by
        #3

        You didn't understand me... i want my text be curved on line...

        G 1 Reply Last reply
        0
        • R Rassul Yunussov

          You didn't understand me... i want my text be curved on line...

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

          you did not understood him... thats what he is trying to teach you ... better rephrase your question if you have a point... its me =Þ grim zax

          R 1 Reply Last reply
          0
          • G grim_zax

            you did not understood him... thats what he is trying to teach you ... better rephrase your question if you have a point... its me =Þ grim zax

            R Offline
            R Offline
            Rassul Yunussov
            wrote on last edited by
            #5

            Ok, let me explaine.... For example if i got horizontal line, i draw the text horizontally on it... If i got a vertical line, i draw the text vertically... If i got curved line, i draw each letter exactly on line... So if i got sin function and word "Hello World!", i need the 'H' at the start, 'e', next step on line... and so on... Let words dancing on line....

            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