Improve DrawImage

  • Thread starter Thread starter Marco Trapanese
  • Start date Start date
M

Marco Trapanese

Hello!

I know GDI+ are very slow, DrawImage method is one of the slowest
methods (as confirmed by a code profiler ran on my application).

I have not spare time to rewrite the paint routine using WPF or DirectX.

So I ask you: the profiler tell me that the 90% of the time is spent
into DrawImage calls. I have a lot of transparent png to resize and to
draw. How I can improve performances (without use WPF)?

Are there any tips for reduce execution time of DrawImage?

Thank you
Marco / iw2nzm
 
Marco said:
Are there any tips for reduce execution time of DrawImage?

I've just reduced the time needed to redraw of about 10 times. How?
Using DrawImageUnscaled instead DrawImage, scaling manually the images
at the first call.

Bye
Marco / iw2nzm
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top