serkan1315
Öğrenci
- Katılım
- 12 Mayıs 2015
- Mesajlar
- 4
- Reaksiyon puanı
- 0
- Puanları
- 0
ilk olarak 300-300 bir form açalım tabiki isteğe bağlı farklı boyutlardada yapabilirsiniz
sonra
1 adet picturebox
alalım ve formumuza yayalım yine 1 parmak yer bırakalım
sonra 2 adet button atalım
button 1 = çek
button 2 = kaydet
button 1
im 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
End Sub
button 2
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
End Sub
End Class?
ve son olarak 1 adet savefiledialog atalım
YORUMLARINIZI BEKLİYORUM EMEĞE SAYGI...
sonra
1 adet picturebox
alalım ve formumuza yayalım yine 1 parmak yer bırakalım
sonra 2 adet button atalım
button 1 = çek
button 2 = kaydet
button 1
im 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
End Sub
button 2
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
End Sub
End Class?
ve son olarak 1 adet savefiledialog atalım
YORUMLARINIZI BEKLİYORUM EMEĞE SAYGI...