Ads 468x60px

Kod Dostu

νιѕυαℓ ѕтυ∂ισ ᆯѺΙѺ σкυℓυηα нσѕgєℓ∂ιηιz !!! νιѕυαℓ ѕтυ∂ισ ᆯѺΙѺ ιℓє ιℓgιℓι ρяσgяαм уαριмιηι вυяα∂αη вυℓαвιℓιя υуgυℓαуαвιℓιяѕιηιz !!! вιzι тєя¢ιн єттιgιηιz ι¢ιη тєѕєккυя є∂єяιz...

11 Ocak 2013 Cuma

Ekran Görüntüsünü Çekme Programı

İtemler :
2 Adet Button
1 Adet PictureBox








Kodllar :

Formun Load Kodu :


MyBase.Load


Button 1' in Özelliği : Text = Çek
Button 1' in Kodları:


Dim bounds As Rectangle
        Dim screenshot As System.Drawing.Bitmap
        Dim graph As Graphics
        bounds = Screen.PrimaryScreen.Bounds
        screenshot = New System.Drawing.Bitmap(bounds.Width, bounds.Height, System.Drawing.Imaging.PixelFormat.Format32bppArgb)
        graph = Graphics.FromImage(screenshot)
        graph.CopyFromScreen(bounds.X, bounds.Y, 0, 0, bounds.Size, CopyPixelOperation.SourceCopy)
        PictureBox1.Image = screenshot


Button 2' nin Özelliği : Text = Kaydet
Button 2' nin Kodları :


Dim savefiledialog1 As New SaveFileDialog
        Try
            savefiledialog1.Title = "Save File"
            savefiledialog1.FileName = "*.bmp"
            savefiledialog1.Filter = "Bitmap |*.bmp"
           If savefiledialog1.ShowDialog() = DialogResult.OK Then
                PictureBox1.Image.Save(savefiledialog1.FileName, System.Drawing.Imaging.ImageFormat.Bmp)
            End If
        Catch ex As Exception

        End Try



İşlem Bu Kadar


OgunBy Visual Studio Okulu












0 yorum:

Yorum Gönder

Not: Yalnızca bu blogun üyesi yorum gönderebilir.