-
Fast BitBlt?
Which one should be faster:
1) Loading several PictureBoxes and setting their Picture property to the Picture property from exisiting Image controls (invisible) on the same Form.
OR
2) Loading several PictureBoxes and setting their Picture property by using BitBlt with bitmap files included in a DLL file (using LoadBitmap)
I don't know. Do you?
-
Number 1 would be slightly faster.
-
I just looked at number 2 again, and I'd like to back up my answer. In order to BitBlt, you need to have a DC. With the time it takes to create the DC, select the bitmap etc, either option1 will be the same, or slightly faster than option 2.
-
That's correct. Personally, I favour speed over size. Since today's HD's are roughly 20-60 GB, an extra MB or so won't hurt.