i am on a new project and am facing another problem.i dont know if i can but id like to get a color value from say 0000803F or from 00000000000000001000000000111111 both are the same thing one in hex and the other in binary but i just cant seem to make heads or tails of it.if thats out of the question maybe you can help me write the color value i have this so far
i would be very happy if i can get this to work.thanks you in advance
Code:
If dlgColor.ShowDialog() = DialogResult.OK Then
PictureBox1.BackColor = dlgColor.Color()
Dim str As String = (hex2bin(System.Drawing.ColorTranslator.ToWin32(dlgColor.Color)))
Dim fs1 As New FileStream(Application.StartupPath & "/files/test1.bin", FileMode.OpenOrCreate, FileAccess.Write)
Dim bwriter1 As New BinaryWriter(fs1)
Dim i As Integer = str
bwriter1.Write(i)
bwriter1.Close()
fs1.Close()
End If
i would be very happy if i can get this to work.thanks you in advance