//从Color类型得到RGB类型
        public int GetRGBFromColor(Color color)
        {
            byte r = color.R;
            byte g = color.G;
            byte b = color.B;
            //转化为32bit RGB值:
            int rgb = (r & 0xff) | ((g & 0xff) << 8) | ((b & 0xff) << 16);
            return rgb;
        }

相关文章:

  • 2022-12-23
  • 2022-02-05
  • 2021-08-20
  • 2022-12-23
  • 2021-12-28
  • 2022-12-23
  • 2021-11-03
猜你喜欢
  • 2022-12-23
  • 2022-02-09
  • 2022-12-23
  • 2021-07-19
  • 2021-04-25
  • 2021-12-23
相关资源
相似解决方案