Improve DrawImage

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Marco Trapanese

    #1

    Improve DrawImage


    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 Trapanese

    #2
    Re: Improve DrawImage

    Marco Trapanese wrote:
    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 DrawImageUnscal ed instead DrawImage, scaling manually the images
    at the first call.

    Bye
    Marco / iw2nzm

    Comment

    Working...