Maybe you should check out the DirectX 9 SDK. I think you will find much
better ways to do your rendering there. And it is much faster than GDI+.
"Mike in Paradise NL" <kanuk_eh@hotmail.com> wrote in message
news:013801c35606$2bdb9830$a501280a@phx.gbl...
> The application is a graphical roller ball image use to
> create, x,y,z vectors. When you click and move the mouse
> the ball turns. It is a 3d ball with full light
> rendering. If you have it at say 100,100 you have 10,000
> pixels that you are changing the color one by one through
> a light rendering and vector caclulation routine. When
> this is in the paint event I couldn't get it perform. The
> rendering was way behind the movement of the mouse and was
> very slow.
>
>
> >-----Original Message-----
> >Hi,
> >You should be doing all your painting in the OnPaint.
> It's the Graphics
> >object that does all the antialiasing so whatever
> graphics you're using
> >needs to have the smoothing mode etc set.
> >
> >If you're using CreateGraphics and doing your drawing
> from inside a timer
> >handler (looks ok but not recommended as an animation
> technique) for
> >example, you need to set-up all the smoothing mode
> parameters and so-on
> >yourself again.
> >
> >--
> >Bob Powell [MVP]
> >C#, System.Drawing
> >
> >Check out the GDI+ FAQ
> >
http://www.bobpowell.net/gdiplus_faq.htm > >
> >Buy quality Windows Forms tools
> >
http://www.bobpowell.net/xray_tools.htm > >
> >New Tips and Tricks include creating transparent controls
> >and how to do double buffering.
> >
> >"Mike in Paradise" <kanuk_eh@hotmail.cm> wrote in message
> >news:0a0301c355dc$121b2200$a601280a@phx.gbl...
> >> The motion of the ball is jerky as doing that amount of
> >> drawing in the OnPaint seems to slow it down so you
> don't
> >> get a nice smooth rotation of the ball at least I
> >> counldn't get it to work well. Work like a charm
> >> motionwise as is just that one little jagged edge
> problem.
> >>
> >> >-----Original Message-----
> >> >> When the ball is initially created or when options
> are
> >> >> changed OnPaint is called which also redraws the
> ball.
> >> So
> >> >> it seems to me that the Anti-Aliasing is being done
> only
> >> >> during Paint events.
> >> >
> >> >Why not then do all your drawing within OnPaint?
> >> >
> >> >Oscar
> >> >
> >> >
> >> >.
> >> >
> >
> >
> >.
> >