HTML ile uğraşanlar icin yararlı bir program.Program mouse imlecinin bulunduğu yerdeki renk kodunu html olarak veriyor.Programı yapmak icin:
Forma bir adet picturebox, textbox ve timer ekleyin. Timer'ın interval değerini 1 ve enabled değerini true yapın daha sonra alttaki kodları aynen yapıştırın
PHP Code:
Public Class Form1
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Dim BMP As New Drawing.Bitmap(1, 1)
Dim GFX As System.Drawing.Graphics = System.Drawing.Graphics.FromImage(BMP)
GFX.CopyFromScreen(New Drawing.Point(MousePosition.X, MousePosition.Y), _
New Drawing.Point(0, 0), BMP.Size)
Dim Renk As Drawing.Color = BMP.GetPixel(0, 0)
PictureBox1.BackColor = Renk
TextBox1.Text = ColorTranslator.ToHtml(Renk)
TextBox1.ForeColor = (Renk)
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Timer1.Enabled = True
End Sub
End Class
__________________
HTML Renk Kodu Bulma
Programlama0 Mesaj
●25 Görüntüleme
- ReadBull.net
- Programlama ve Yazılım
- Programlama
- HTML Renk Kodu Bulma