Crop A Image In A Picture Box - Part 1

  Рет қаралды 7,125

Swarg

Swarg

Күн бұрын

Пікірлер: 18
@alirezasamereh_general
@alirezasamereh_general 2 жыл бұрын
Nice And Ice.
@4TechUp
@4TechUp 2 жыл бұрын
Is it possible to replace PictureBox1 with a webcam and save the image by writing the name of the image in a text box and saving it in a specific place without opening the image save dialog
@swarg2647
@swarg2647 2 жыл бұрын
as per your requirement we need picture box controlle to open web cam and capture the image.... For more details read these article.... www.aspsnippets.com/questions/173314/Capture-image-from-WebCam-and-display-in-PictureBox-in-Windows-Application/
@xeldrin8465
@xeldrin8465 5 жыл бұрын
Hey, amazing tutorial. Everything is working great for me up to the part where you crop the image. I have followed your code exactly, except for that I want to output the cropped image in the same picturbox. The bitmap crop gives me a parameter is not valid error. Any ideas?
@swarg2647
@swarg2647 5 жыл бұрын
Hi, Sometimes You Just try to double click on picture box, So that time Height and Width Of Rectangle Is 0. And throw the runtime error. You should try to debug the picFromImg_MouseUp Event and add breakpoint in this line [if (rect != null]). So you understand the error. Now Your Solution: To Cropped img in same picture box: just comment out this line : - picTargetImg.Image = cropImg; And add this: - picFromImg.Image = cropImg; the above solution as per my source code. and i check it its working properly.
@xeldrin8465
@xeldrin8465 5 жыл бұрын
@@swarg2647 thx for the reply. The problem was that it was not waiting for the mouse up event for me for some reason, but got it fixed now:) thx again!
@swarg2647
@swarg2647 5 жыл бұрын
welcome
@erenterlikli2821
@erenterlikli2821 5 жыл бұрын
@@swarg2647 I have the same error but it didn't work. Also when you want to crop the picture, rectangle is not showing on the picture so you can not. How should i do?
@swarg2647
@swarg2647 5 жыл бұрын
@@erenterlikli2821 can you please describe the error ?
@NgocAn
@NgocAn 5 жыл бұрын
Thank you so much
@swarg2647
@swarg2647 5 жыл бұрын
Welcome
@NgocAn
@NgocAn 5 жыл бұрын
@@swarg2647 Can you help me algorithm rotate image with any angle in C#? I had to search but only encounter the flip algorithm. Thank and good luck to you.
@swarg2647
@swarg2647 5 жыл бұрын
@@NgocAn ok i will try....
@NgocAn
@NgocAn 5 жыл бұрын
@@swarg2647 Thank you very much
@ubaidurrehman9292
@ubaidurrehman9292 2 жыл бұрын
sir please send me cource code
@swarg2647
@swarg2647 2 жыл бұрын
Hi, source code link is available in description,
@l3gend957
@l3gend957 5 ай бұрын
@@swarg2647 doesnt work anymore
C# CustomList Using UserControl And FlowLayoutPanel
21:37
Chieng
Рет қаралды 121 М.
How to treat Acne💉
00:31
ISSEI / いっせい
Рет қаралды 108 МЛН
Гениальное изобретение из обычного стаканчика!
00:31
Лютая физика | Олимпиадная физика
Рет қаралды 4,8 МЛН
黑天使只对C罗有感觉#short #angel #clown
00:39
Super Beauty team
Рет қаралды 36 МЛН
C# Image Processing & LockBits Part1
13:43
EETechStuff
Рет қаралды 8 М.
Create Paint Using C#, Graphics in C#
48:57
Coding with Libino
Рет қаралды 13 М.
C# Programming - Drawing Using The Graphics Class
19:56
Bill Butterfield
Рет қаралды 84 М.
Paint Application in C# Visual Studio By Rohit Programming Zone
35:36
Rohit Programming Zone
Рет қаралды 83 М.
Intro to Redis in C# - Caching Made Easy
1:27:29
IAmTimCorey
Рет қаралды 180 М.
C# how to create a simple graphic editor - part 1
19:54
Dawisko1
Рет қаралды 96 М.
How to use C# PictureBox and Crop Image by Mouse Selection
3:20
C# Exercises
Рет қаралды 7 М.
C# Winform Paint
11:27
Mr Programmer
Рет қаралды 97 М.
How to treat Acne💉
00:31
ISSEI / いっせい
Рет қаралды 108 МЛН