Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

ive been playing with

 

Dim BrPen As Pen = New Pen(Color.Brown, 4)

 

e.graphics.drawstring("test", ?????, brpen,10,10)

 

i dont know what to put for the font, and if i figure it out im not sure if the rest is right, can someone help me out =D thanks in adnvance

  • Leaders
Posted

My cheap solution (you don't have a create a new font for) would be just to pass the form's Font to .DrawString

 

e.Graphics.DrawString("test", Me.Font, Brushes.Black, 10F, 10F) :)

This would be better than creating a new font everytime you use drawstring though, but you could keep fnt in a public place so that you don't have to recreate it as well.

Iceplug, USN

One of my coworkers thinks that I believe that drawing bullets is the most efficient way of drawing bullets. Whatever!!! :-(

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...