rotating bitmaps. In code

后端 未结 4 2000
生来不讨喜
生来不讨喜 2020-11-28 07:55

Is there a faster way to rotate a large bitmap by 90 or 270 degrees than simply doing a nested loop with inverted coordinates?

The bitmaps are 8bpp and typi

4条回答
  •  醉话见心
    2020-11-28 08:21

    You might be able to improve it by copying in cache-aligned blocks rather than by rows, as at the moment the stride of either src dest will be a miss ( depending whether delphi is row major or column major ).

提交回复
热议问题