Results 1 to 7 of 7

Thread: drawing text??

Threaded View

  1. #1

    Thread Starter
    Member
    Join Date
    Jul 2002
    Posts
    39

    Question drawing text??

    i want to put some text over an image, in vb6 i would have just used a label, but labels in .net cant have proper transparency for some reason, i have serched this forum and the only solution is to draw the text on, i have used the following code but the text appers with sight colour round the side the colour changes depending on what part of the text it is. i have seen this happen below with xp's true type and transparency, is this whats causing it and can it be stopped??

    Code:
    Dim g As Graphics = PictureBox1.CreateGraphics
    Dim mybrush As New SolidBrush(Color.Black)
    Dim myFont As New Font("Microsoft Sans Serif", 8.5, FontStyle.Regular, GraphicsUnit.Point, 5)
    g.DrawString(message, myFont, mybrush, 10, 30)
    g.DrawString(stext, myFont, mybrush, 10, 40)
    Last edited by spike232; Jul 6th, 2002 at 11:04 AM.

Posting Permissions

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



Click Here to Expand Forum to Full Width