Jump to content
Xtreme .Net Talk

Recommended Posts

  • *Gurus*
Posted
You'll have to draw your image in an offscreen bitmap instead. You can then assign that image to a picturebox or draw it wherever you like. Use the Bitmap constructor to create the image, and use Graphics.FromImage to get a Graphics object from it to draw on it.

MVP, Visual Developer - .NET

 

Now you see why evil will always triumph - because good is dumb.

 

My free .NET Windows Forms Controls and Articles

  • *Gurus*
Posted

I just said... with the Bitmap constructor and Graphics.FromImage.

 

Dim b As New Bitmap(100, 100)
Dim g As Graphics = Graphics.FromImage(b)

g.DrawLine(whatever)

g.Dispose()
myPictureBox.Image = b

 

All untested of course but should work.

MVP, Visual Developer - .NET

 

Now you see why evil will always triumph - because good is dumb.

 

My free .NET Windows Forms Controls and Articles

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...