dcsimg
Results 1 to 6 of 6

Thread: Text on Graphics

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2010
    Posts
    276

    Text on Graphics

    I currently have a graphics object g where I am drawing lines and ellipses on with the command

    Code:
    g.DrawEllipse(definedPen, Fc, Fr, Tc, Tr)
    g.DrawLine(definedPen, Fc, Fr, Tc, Tr)
    This works fine. However what I canít find out how to do is place text onto the graphics object at a specified row & column.

    Any assistance would be appreciated.

  2. #2
    PowerPoster
    Join Date
    Mar 2002
    Location
    UK
    Posts
    4,780

    Re: Text on Graphics

    I'm confused, does not g.DrawString do what you need?

  3. #3
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    22,705

    Re: Text on Graphics

    what are: Fc, Fr, Tc, Tr?
    how are you calculating them?
    could you post a screenshot?

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2010
    Posts
    276

    Re: Text on Graphics

    Grimfort, Many thanks, It does exactly what I need (now I know it exists)

  5. #5
    PowerPoster
    Join Date
    Mar 2002
    Location
    UK
    Posts
    4,780

    Re: Text on Graphics

    First thing to do with any object you have not used before is to have a look at the help and see what it can do, sometimes you can save yourself hours by a few mins reading .

  6. #6
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    22,705

    Re: Text on Graphics

    Quote Originally Posted by Grimfort View Post
    First thing to do with any object you have not used before is to have a look at the help and see what it can do, sometimes you can save yourself hours by a few mins reading .
    or use intellisense. vb.net commands tend to be descriptive...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width