CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Jul 2008
    Posts
    52

    Bitmap of string

    Can I Draw text onto a bitmap? or can I convert a string to a bitmap?

  2. #2
    Join Date
    Jan 2006
    Location
    Chicago, IL
    Posts
    14,589

    Re: Bitmap of string

    Probably, but, what do you want to do, EXACTLY?
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2012 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  3. #3
    Join Date
    Jul 2008
    Posts
    52

    Re: Bitmap of string

    I want the text entered by the user to become part of a PictureBox Image

  4. #4
    Join Date
    Jan 2006
    Location
    Chicago, IL
    Posts
    14,589

    Re: Bitmap of string

    Way cool in Windows 7, but different for Vista, and XP.

    You can DRAW Text on a picturebox control by default.
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2012 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  5. #5
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    10,803

    Re: Bitmap of string

    Quote Originally Posted by PaulJayKnight View Post
    I want the text entered by the user to become part of a PictureBox Image
    Yes, for sure!

    For starters, you will definitely need the DrawString method of your Graphicsa object to do this

    Did you just load the picture into the PictureBox, or is it a Drawing ( which you have done through code ). if you could explain this part, I can quickly work out a small sample for you

+ Reply to Thread

Bookmarks

Posting Permissions

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



HTML5 Development Center

Click Here to Expand Forum to Full Width