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

4

2 回答 2

2

如果不缩放图像,DrawImageUnscaled 会有所帮助。考虑设置为预乘 RGBA。将图像分割成更小的块。

见这里:http ://www.gamedev.net/topic/467752-maximizing-gdi-speed/

于 2012-06-16T16:09:03.637 回答
0

似乎有一个类似的问题:How to increase performance over GDI's DrawImage(Unscaled)?

那家伙最终在 OpenTK 之上编写了自己的库,以真正加快速度。

于 2012-06-16T16:10:55.363 回答