Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
microsoft.public.dotnet.framework.drawing
big problem with flickering on PocketPC
Adam Edell via DotNetMonster.com
1/22/2005 7:16:00 AM
Hi all, I have big problem and I'm stuck and don't know what to do..
I'm developing application for PocketPC. In application I use panel on form to scroll thru big picture(relative: picture is bigger than a screen 240 x 320) and I get flickering, even with a small puctures.
I have that form, then panel is in other class and I use
this.panel.Paint += .....
to draw on screen. In Paint class I simly call method from panel for drawing:
drawImage(Graphics graphics, Image image)
{
Graphics gx = graphics;
gx.drawImage(image,...,...);
}
Graphics object getting from parametar is function is because on CF I can't use panel.CreateGraphics(), even in MSDN they say I can.
and when scroll event happens it call function from panel class that iterate location of the lefttop window of image part and then call drawing in main form with:
this.Panel.Invalidate()
so it's call panel.Paint() function and do drawing
The point is that I get flickering anyway, I try to use double buffering technique in drawImage() method but result is the same.
On this site, I saw post that saying methog:
///remove flickering
onPaintBackground(){...}
but I don't how to use it only on panel(panel it's not inherited from System.Windows.Forms.Form)
Help !!!!!!!!!!!
marko
--
Message posted via
http://www.dotnetm...
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
big problem with flickering on PocketPC
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password