Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/vb.net/16.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
PHP中的OLE_颜色转换_Php_Vb.net - Fatal编程技术网

PHP中的OLE_颜色转换

PHP中的OLE_颜色转换,php,vb.net,Php,Vb.net,我正在用PHP编写一个脚本,需要调用一个将和OLE_COLOR作为参数的方法。到目前为止,我已经尝试了我能想到的一切以及其他人的建议,我能得到的最好结果就是类型不匹配错误。以下是API提供程序提供的各种语言的数据类型说明: C++:静态_转换(RGB(0,0255)) VB6:RGB(0,0,255) VB.NET: Convert.ToUInt32(System.Drawing.ColorTranslator.ToOle)(Color.FromArgb(0, (0,255) C:(uint)S

我正在用PHP编写一个脚本,需要调用一个将和OLE_COLOR作为参数的方法。到目前为止,我已经尝试了我能想到的一切以及其他人的建议,我能得到的最好结果就是类型不匹配错误。以下是API提供程序提供的各种语言的数据类型说明:

C++:静态_转换(RGB(0,0255))

VB6:RGB(0,0,255)

VB.NET: Convert.ToUInt32(System.Drawing.ColorTranslator.ToOle)(Color.FromArgb(0, (0,255)

C:(uint)System.Drawing.ColorTranslator.ToOle(Color.FromArgb(0,0,, (255))

其他:以下格式的32位整数值:0x00bbggrr(在BGR中) 格式(非RGB格式)

方法原型为:

Sub AddHyperlink(InputFileName As String,
                 OutputFileName As String,
                 From As Long,
                 To As Long,
                 Left As Double,
                 Top As Double,
                 Right As Double,
                 Bottom As Double,
                 Url As String,
                 Style As prcAnnotBorderStyle,
                 Color As OLE_COLOR)

任何帮助都将不胜感激。

OLE_COLOR
在Windows中是一个0x00bbggrr格式的整数。这意味着
COLOR=red+256*green+65536*blue
,其中每个组件的范围为0-255。0x000000ff为纯红色,0x0000ff00为纯绿色,0x00ff0000为纯蓝色