码迷,mamicode.com
首页 > 其他好文 > 详细

修改背景颜色

时间:2015-09-22 18:04:22      阅读:159      评论:0      收藏:0      [点我收藏+]

标签:

        Dim value As Drawing.Color = Drawing.Color.Blue
        Dim num As Double = (CDbl(value.R) / 255)
        Dim num2 As Double = (CDbl(value.G) / 255)
        Dim num3 As Double = (CDbl(value.B) / 255)
        Dim numArray As Double() = New Double() {num, num2, num3}
        Dim disp As UFDisp = NXOpen.UF.UFSession.GetUFSession().Disp
        Dim num4 As Integer = 0
        Dim num5 As Integer = 0
        Dim str As String = ""
        disp.SetColor(num4, num5, str, numArray)
        disp.LoadColorTable()

 

修改背景颜色

标签:

原文地址:http://www.cnblogs.com/bizca/p/4829384.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!