I trie to fill out a PictueBox control (for example blue) with the Pset function, it takes days.
Can I improve the speed of that?
That is the code:
For x = 0 to PictureBox.Width-1
For y = 0 to PictureBox.Height-1
Pset (x,y) , 0
Next y
Next x
Printable View
I trie to fill out a PictueBox control (for example blue) with the Pset function, it takes days.
Can I improve the speed of that?
That is the code:
For x = 0 to PictureBox.Width-1
For y = 0 to PictureBox.Height-1
Pset (x,y) , 0
Next y
Next x
Use BitBlt. BitBlt has been explained millions of times on this forum already so I can't be botherd to type it all out again :) Go look for threads on BitBlt, it's easy enough to use.
Yep. Also there's some BitBlt samples on my website ;)
...and especially in your case (to fill a picturebox) you can use the following code:
Code:'Fills Picture1 with blue pixels :D
Picture1.BackColor = RGB( 0, 0, 255 )