تقييم الموضوع :
  • 0 أصوات - بمعدل 0
  • 1
  • 2
  • 3
  • 4
  • 5
تعديل على كود take ScreenShot
#4
السلام عليكم،
أستبدل كودك بالكود التالي:
كود :
Dim saveFile As String = path & ".jpg"
        Dim cropSize As Size = AxWindowsMediaPlayer1.Size
        Dim croppedImage As New Bitmap(AxWindowsMediaPlayer1.Size.Width, AxWindowsMediaPlayer1.Size.Height)
        Dim G As Graphics = Graphics.FromImage(croppedImage)
        G.CopyFromScreen(AxWindowsMediaPlayer1.PointToScreen(Nothing), Nothing, cropSize)
        PictureBox1.Image = croppedImage
        croppedImage.Save(saveFile)
        MsgBox("Saved File To : " & saveFile) 'Showing the whole path where capturedImage is saved
        Process.Start(saveFile) 'Showing The Captured Image In Windows Image Viewer
الرد }}}
تم الشكر بواسطة:


الردود في هذا الموضوع
تعديل على كود take ScreenShot - بواسطة W XP 2003 - 27-11-12, 11:13 PM
تعديل على كود take ScreenShot - بواسطة سعود - 27-11-12, 11:18 PM
تعديل على كود take ScreenShot - بواسطة سعود - 27-11-12, 11:28 PM
تعديل على كود take ScreenShot - بواسطة Aly El-Haddad_mybb_import4475 - 28-11-12, 01:10 AM
تعديل على كود take ScreenShot - بواسطة W XP 2003 - 28-11-12, 02:02 AM


التنقل السريع :


يقوم بقرائة الموضوع: