Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Sep 28th, 2005, 2:13 PM   #1
bigbondfan
Newbie
 
bigbondfan's Avatar
 
Join Date: May 2005
Posts: 7
Rep Power: 0 bigbondfan is on a distinguished road
Angry annoying pictures

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?
bigbondfan is offline   Reply With Quote
Old Sep 28th, 2005, 3:08 PM   #2
Rory
Expert Programmer
 
Rory's Avatar
 
Join Date: Jan 2005
Location: London
Posts: 542
Rep Power: 4 Rory is on a distinguished road
Send a message via MSN to Rory
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.
Rory is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 5:19 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC