У нас вы можете посмотреть бесплатно How to Capture only a Form Area or a PictureBox Area in VB Net или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
This Tutorial helps you to learn about how to capture only a Form area or a picturebox area or client area of any other control. Correction: ------------------------------------------------------------------------------------------------------------------------------------------------------------------- The application shown in the above tutorial captures some area that is outside the Form. This is because we captured the image up to the form's width and size, which also includes the size of the non-client area. But the code we were written starts to capture the form from its client area. So, the client area of form + some additional space that includes the width and the height of the non-client area is taken. To, solve the above problem, rewrite your CaptureControlArea() function as follows, Private Function CaptureControlArea(ctrl As Control) As Bitmap Dim size As Size = ctrl.ClientSize Dim tmpBmp As New Bitmap(size.Width, size.Height) Dim g As Graphics g = Graphics.FromImage(tmpBmp) g.CopyFromScreen(ctrl.PointToScreen(New Drawing.Point(0, 0)), New Drawing.Point(0, 0), New Size(size.Width, size.Height)) Return tmpBmp End Function Here we first obtain the Client area of Form and then use that size alone. So, replace the CaptureControlArea() function shown in the tutorial with the code shown above.