开发者社区 问答 正文

如何在Asp.net中使用HSL

net中使用哪些工具处理HSL颜色?

展开
收起
游客ufivfoddcd53c 2020-01-03 16:01:26 1012 分享 版权
1 条回答
写回答
取消 提交回答
  • 除了secretGeek的答案之外,要从HSL值获得颜色(反之亦然),还可以使用以下本机函数调用(Visual Basic中的示例代码):

    Public Declare Sub ColorRGBToHLS Lib "shlwapi.dll" _
                                        (ByVal clrRGB As UInteger, _
                                         ByRef pwHue As Short, _
                                         ByRef pwLuminance As Short, _
                                         ByRef pwSaturation As Short)
    Public Declare Function ColorHLSToRGB Lib "shlwapi.dll" _
                                            (ByVal wHue As Short, _
                                             ByVal wLuminance As Short, _
                                             ByVal wSaturation As Short) As UInteger
    
    2020-01-03 16:01:58
    赞同 展开评论
问答分类:
问答地址: