我可以向该函数传递哪些参数?

发布于 2024-12-08 20:23:01 字数 313 浏览 2 评论 0原文

我发现了一个函数

 function RotateBitmap(var hDIB: HGlobal;
 radang: Double; clrBack: TColor): Boolean;

可以旋转图像。但我不知道如何调用这个函数。我可以将哪些参数传递给该函数。 我根本不知道如何使用这个功能。

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

泪之魂 2024-12-15 20:23:01

从给出的代码来看,hDIB 是一个指向包含 2 个结构的单个内存块的指针 - BitmapInfo 和位图的像素数组。您可以使用 GetDIBSizesTBitmap 获取这些结构code>GetDIB 函数。

如果您对位图转换感兴趣,可以遵循 David 的建议并尝试 graphics32

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文