Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
intデータベースから取得した RBG コード (111,000,111 ではなく 111000111 などの書式なし) を変換し、16 進数に変換しようとしています。
int
誰かが私がこれを行う方法を知っていますか?
FromArgbメソッドを使用できます。
int number = 111000111; Color c = Color.FromArgb(number); string hex = string.Format("{0:x}{1:x}{2:x}", c.R, c.G, c.B);