开发者

PictureBox.Refresh() is slow when drawing in a PictureBox

开发者 https://www.devze.com 2022-12-14 04:00 出处:网络
I h开发者_如何学编程ave a Windows Form Application in Visual Studio 2008 - PictureBox.Refesh() method causes a delay when drawing on a PictureBox.Is there any method that gives the same result without

I h开发者_如何学编程ave a Windows Form Application in Visual Studio 2008 - PictureBox.Refesh() method causes a delay when drawing on a PictureBox. Is there any method that gives the same result without delay?


Without delay? Invalidate() works too, but remember... don't use refresh() on the whole form, specify it... Maybe that's causing the delay (I don't see delays like that, are you reading the image from where?)

EDIT: I was building a project and PNG's 8-bit alpha blending was not playing nice with winforms. Open my app and see if you have that flickering when you resize:
http://www.mediafire.com/?rnj25my2ygd


i have solved my problem my self

i just set a timer and on its event i have updated my image and the timer interval is set as i desired to 100 miliseconds now my application is running so smoothly any one up with this problem try this it works for me

regards:

0

精彩评论

暂无评论...
验证码 换一张
取 消