|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
OnPaint vs. using a cached background imageI thought this was going to be a no-brainer. Instead of constantly
re-rending with OnPaint, my plotter was going to render its entire image once to a bitmap OnResize as a way of caching its display. Only... displaying a cahced bitmap performs *signifigantly* worse than using OnPaint, especially when I'm zoomed in and scrolling around, and the bitmap is quite large. I was *not* expecting that. I know there has to be a right way of doing this. Is there anything I can do to squeeze greater performance out of picture rendering? Man I hope I get an answer to this one. This will be the fourth question I've asked here that nobody has answered :( Paul Hi PJ6
if you don't get an answer here maybe you could post to: microsoft.public.dotnet.framework.drawing which is the ng for drawing in .net And maybe if you post some code for this question that some people here can help you. Greetz Peter -- Show quoteHide quoteProgramming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. (Rich Cook) "PJ6" <nob***@nowhere.net> schreef in bericht news:eM54x4JaGHA.3740@TK2MSFTNGP03.phx.gbl... > I thought this was going to be a no-brainer. Instead of constantly > re-rending with OnPaint, my plotter was going to render its entire image > once to a bitmap OnResize as a way of caching its display. Only... > displaying a cahced bitmap performs *signifigantly* worse than using > OnPaint, especially when I'm zoomed in and scrolling around, and the bitmap > is quite large. I was *not* expecting that. > > I know there has to be a right way of doing this. Is there anything I can do > to squeeze greater performance out of picture rendering? > > Man I hope I get an answer to this one. This will be the fourth question > I've asked here that nobody has answered :( > > Paul > >
"Send To Mail Recipient"
position in array using a string Any 'Windows Service' Experts? Why can't I capture the screen?? Error Handling: load text file into TextBox Recursion with a Tree View and checkboxes GetType question Missing DataGrid RTF and word tables Associate value with item in combobox Click-Once Deployment of DLLs |
|||||||||||||||||||||||