![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: May 2005
Posts: 7
Rep Power: 0
![]() |
i pretty sure this happens on any computer and it is not just that i have a slower computer. when i try to make an image move, it flickers. it doesn't on a picture box, but a picture box doesn't support transpareny and an image box does. does anyone know how to stop the flicker, or get the picture box to have transparency? ![]() |
|
|
|
|
|
#2 |
|
Expert Programmer
|
Use an API to draw the bitmaps, like BitBlt for your bog standard one, similar routines from the MSImg or GDI+ libraries, or DirectDraw if you're feeling clever.
Image "controls" actually just tell VB to redraw the image on the form_onpaint event, which is done really inefficiently using windows messages, hence the flickering. Picture boxes get a slight speedup from the fact they allocate a device context / independent bitmap but are still very slow. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|