问题
I found a function
function RotateBitmap(var hDIB: HGlobal;
radang: Double; clrBack: TColor): Boolean;
that rotates an image. But I don't know how to call this function. What parameters I can pass to this function. I don't know how to use this func at all.
回答1:
Judging by the code presented hDIB
is a pointer to a single memory block containing 2 structures - BitmapInfo and bitmap's pixel array. You can obtain these structures from TBitmap
using GetDIBSizes and GetDIB functions.
If you are interested in bitmap transformations you can follow David's advice and try graphics32
来源:https://stackoverflow.com/questions/7690388/what-parameters-i-can-pass-to-this-function