【问题标题】:should I set a color to a value fromRgb or fromHex xamarin我应该将颜色设置为 fromRgb 还是 fromHex xamarin
【发布时间】:2016-10-29 13:46:29
【问题描述】:

我的意思是,在设置颜色时,最佳做法是什么?首先获取整数值,然后设置为 Color.FromRgb(int, int, int) 还是直接将其设置为 Color.FromHex(string) (在性能或课程方面)?

【问题讨论】:

    标签: performance xamarin colors integer hex


    【解决方案1】:

    看看here

    您可以尝试使用计时器进行测试,看看哪个更快,如上面“此处”链接的帖子中所述。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-07-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-05-22
      • 2018-01-29
      • 2012-10-17
      相关资源
      最近更新 更多