Jump to content
  • Advertisement
Sign in to follow this  
Boder

[.net] Playing with PictureBox's Bits

This topic is 3792 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I read some good advices from the Cap'n and Mr. Ryves, including bypassing the PictureBox control altogether and using LockBits(). But if I am using a picturebox control, is there a way to manipulate the pixels of the PictureBox.Image without creating a new Bitmap every time (and setting it back, whatever that entails)? I know I can create a Graphics object, but it doesn't expose the naughty bits. So what am I missing?

Share this post


Link to post
Share on other sites
Advertisement
If you have a Bitmap and assign it to a PictureBox's Image property, you can make a change to the bitmap and simply call the PictureBox's Invalidate method to update the image.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!