回覆列表
  • 1 # 一不小心遇見

    1、Color.FromArgb(120,243,244,247)先將F3,F4,F7轉化為十進位制數,再呼叫以上方法。2、把F3 F4 F7轉成10進位制然後用 Color.FromArgb3、Color yourColor = Color.FromName("#F3F4F7");4、比較笨一點的辦法:string a="#F3F4F7";new System.Drawing.Color.fromArgb(System.int8.parse(a.substring(1,2),System.Globalization.NumberStyles.AllowHexSpecifier);System.int8.parse(a.substring(3,2),System.Globalization.NumberStyles.AllowHexSpecifier);System.int8.parse(a.substring(5,2),System.Globalization.NumberStyles.AllowHexSpecifier););5、Color color =Color.FromArgb(0xf3,0xf4,0xf7);6、Public ForeColor As System.Drawing.Color = ColorTranslator.FromHtml("#F3F4F7")7、System.Drawing.ColorConverter cc=new System.Drawing.ColorConverter();return (System.Drawing.Color)cc.ConvertFromString(sHex)

  • 中秋節和大豐收的關聯?
  • 骨字查部首應該查什麼旁?