0

Im using GDI+ to render images in c#.The method works fine when Medium quality images are used.But when i use High quality images with large sizes ranging from 1.5-5mb the processing seems to be much slower.I mainly use

Graphics.DrawImage

Is there any way to speed up this.Can i reduce the size of the images on the fly by compressing it in memory,Will this take more time.Any ideas

techno
  • 6,100
  • 16
  • 86
  • 192

2 Answers2

2

If not scaling the image, DrawImageUnscaled will help. Consider setting to premultiplied RGBA as well. Split the image into smaller chunks.

See here: http://www.gamedev.net/topic/467752-maximizing-gdi-speed/

Mark Sowul
  • 10,244
  • 1
  • 45
  • 51
0

There seems to have been a similar question: How to increase performance over GDI's DrawImage(Unscaled)?

That guy ended up writing his own library on top of OpenTK to really speed up things.

Community
  • 1
  • 1
Marcel N.
  • 13,726
  • 5
  • 47
  • 72