Remove flickering in Image Control 
Author Message
 Remove flickering in Image Control

Hello Experts,

I am creating an activeX control, to Zoom-In/Out and scroll the images.
Here is what I am doing to get this job done...

I am using 1 picturebox control (pctBorder) and another one (pctImage) which
is placed in the pctBorder.  I load the image in pctImage and allow the user
to click on various options like, move left, move right, zoom in, zoom out.

When the user clicks on move left /right/top/bottom, I simply change the
left and top coordinates of the pctImage and that gives the appearance as
image is scrolling withing the outside pctBorder.  To do this I have
implemented a timer control running a 1 ms interval.  When the user opts for
zoom functions, I increase or decrease the height and width of the pctImage
so that it gives an appearance that image is zooming.

Now the problem I am facing is,  there is a lot of flickering in the image
when I change the coordintes or when it is resized.  I tried using different
combinations of AutoRedraw but did not succeeded in eradicating the flicker.

Can anyone please tell me how do I make the image transitions, smoother (w/o
flickering).  Or a correct method to do what I intend to do.

Thanks in advance

-Niloday



Sat, 17 Dec 2005 21:28:44 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Image Control- how to stop flickering?

2. HOWTO: Prevent flicker in TreeView control when changing the .Image property of a Node object

3. HOWTO: Prevent flicker in TreeView control when changing the .Image property of a Node object

4. HOWTO: Prevent flicker in TreeView control when changing the .Image property of a Node object

5. Q: How to get rid of ListView flicker when adding/removing items

6. ImageList Control Problem removing an image

7. moving an image, avoiding flicker, help...

8. Flickering problems with animating images

9. Help with flicker in image

10. Help: timer event causes image flicker

11. PLEASE: suggestions to solve image flicker

12. Flicker while using overlapping images

 

 
Powered by phpBB® Forum Software