我可以传递给该函数哪些参数? [英] What parameters I can pass to this function?

查看:70
本文介绍了我可以传递给该函数哪些参数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我找到了功能

 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.

推荐答案

根据给出的代码判断 hDIB 是指向包含2个结构的单个内存块的指针-BitmapInfo和位图的像素数组。您可以使用 TBitmap 获取这些结构。 GetDIBSizes GetDIB 函数。

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.

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

If you are interested in bitmap transformations you can follow David's advice and try graphics32

这篇关于我可以传递给该函数哪些参数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆