Paint Application in C# Visual Studio By Rohit Programming Zone

  Рет қаралды 83,665

Rohit Programming Zone

Rohit Programming Zone

Күн бұрын

Пікірлер
@jakob3861
@jakob3861 3 жыл бұрын
This was the best C# video i have ever seen!
@estebancamachoreyna8843
@estebancamachoreyna8843 3 жыл бұрын
AL CHILE ME SALVAS EL SEMESTRE ERES UN CRACK WEY LIKE Y ME SUSCRIBO GUAPO
@EduTech2001
@EduTech2001 Жыл бұрын
Thank you for sharing that type of video with us dear. 👌
@prichaponkongpratet9859
@prichaponkongpratet9859 10 ай бұрын
Excellent
@wotmastersclub5559
@wotmastersclub5559 6 ай бұрын
3 раз смотрю и удивляюсь 👌 Решение > 👍👍👍👍👍
@stefanmilinkovic6433
@stefanmilinkovic6433 2 жыл бұрын
16:00 for an ellipse 18:00 for dragging graphics
@hagu2388
@hagu2388 8 ай бұрын
Спасибо тебе, благодарю твоему видео я смогу закрыть лабы в Институте
@EduTech2001
@EduTech2001 Жыл бұрын
It is incredible bro...
@carlosjohnalpay4203
@carlosjohnalpay4203 2 жыл бұрын
Cool Video. Very helpful!!!
@cartaselivros
@cartaselivros Жыл бұрын
wonderfull. thanks.🥇
@nguyenquochuy742
@nguyenquochuy742 2 жыл бұрын
Thank you so much. I love this video!!!
@Lee_Je_Oh
@Lee_Je_Oh 3 жыл бұрын
The best🔥🔥🔥
@u1krsh
@u1krsh 2 жыл бұрын
Can you Please Post the Project Files I'm having some issues in my build, i want to check
@_tung_
@_tung_ Ай бұрын
You're my hero!!!
@ms.d3946
@ms.d3946 3 жыл бұрын
This was so helpful
@Water_Lemur
@Water_Lemur 2 жыл бұрын
nice!
@NguyenTam-zl2tk
@NguyenTam-zl2tk 3 ай бұрын
So wonderful! Can you create an app with multiple edited photos that can be saved as videos? I'm learning how to make a karaoke app but don't know how to save them as videos!
@ulymastambul6257
@ulymastambul6257 2 жыл бұрын
thank you for sharing your knowledge with me
@rohitprogrammer
@rohitprogrammer 2 жыл бұрын
Ur welcome...
@ulymastambul6257
@ulymastambul6257 2 жыл бұрын
@@rohitprogrammer I wanna to learning to more in C#. can help me ?
@rohitprogrammer
@rohitprogrammer 2 жыл бұрын
Go through all my videos u will get all ur answers....
@ulymastambul6257
@ulymastambul6257 2 жыл бұрын
@@rohitprogrammer thank's... what ur ever make embroidery software in c# ?
@anilgorani6437
@anilgorani6437 Жыл бұрын
Thank you, I got what I want
@ДанилЛевковский-ц8г
@ДанилЛевковский-ц8г 8 ай бұрын
Спасибо большое. Очень познавательно.
@UltraBoiDanielSalama
@UltraBoiDanielSalama 2 жыл бұрын
Please make a tutorial on how to connect it to client side so i can make a live painting program!
@ToleDiriba-o2z
@ToleDiriba-o2z Жыл бұрын
👏👏👏👏👏👏👏👏👏👏👏👏👏👏
@malcolmpalmer2437
@malcolmpalmer2437 Жыл бұрын
Can you show how to select part of the drawings then cut, copy and paste?
@vangezto
@vangezto Жыл бұрын
when i add image on picturebox icant draw on it how can i be able to draw on it ?
@yolandayanchatipanl.6432
@yolandayanchatipanl.6432 3 жыл бұрын
Thanks, im helping
@cyancaelus6456
@cyancaelus6456 11 ай бұрын
Like. Can You Even Code a Painting App That Also Can Use Transparent Background for Painting? Like What Works like Krita, IbisPaintX and SketchBook
@rohitprogrammer
@rohitprogrammer 10 ай бұрын
To set a transparent background in a C# Windows Form, you can use the TransparencyKey property of the form. Here's a simple example: public partial class MainForm : Form { public MainForm() { InitializeComponent(); // Set the transparency key to the BackColor of the form this.TransparencyKey = this.BackColor; } private void MainForm_Load(object sender, EventArgs e) { // Set the form's background color to be transparent this.BackColor = Color.Transparent; } } Make sure to set the form's BackColor property to the desired background color and handle any controls or elements accordingly. Keep in mind that transparency might not work perfectly with all controls, so you might need to customize your approach based on your specific requirements.
@natureandfun62
@natureandfun62 2 жыл бұрын
I want a the paint application to edit photos which should be having these functionalities + text, save, undo, redo and select and drag a shape can u plxx help me
@sabinocorona3100
@sabinocorona3100 3 жыл бұрын
How can i turn the rectangle to 360° rectangle?
@dannieblack4245
@dannieblack4245 9 ай бұрын
private void pictureBox1_Paint(object sender, PaintEventArgs e) { Graphics graphicsCurrent = e.Graphics; int startX = Math.Min(cX, x); int startY = Math.Min(cY, y); int width = Math.Abs(x - cX); int height = Math.Abs(y - cY); if (paint) { if (index == 3) { graphicsCurrent.DrawEllipse(p, cX, cY, sX, sY); } if (index == 4) { graphicsCurrent.DrawLine(p, cX, cY, x, y); } if (index == 5) { graphicsCurrent.DrawRectangle(p, startX, startY, width, height); } } } The DrawRectangle doesnt let you use negative valuess, so you have to use abs for the width and height of the rectangle, hope it helps
@dannieblack4245
@dannieblack4245 9 ай бұрын
OH my god your comment was 2 years old, sorry lol
@saiharshal9089
@saiharshal9089 Жыл бұрын
Can we able to paste pictures on the canvas?
@huutienang7600
@huutienang7600 2 жыл бұрын
Hey guy I want to ask something How to select, move, group and ungroup shap in picture box?? What key word i should find?
@denizsozen360
@denizsozen360 Жыл бұрын
Where did you find the color part above?
@assassinscreed6174
@assassinscreed6174 3 жыл бұрын
Could you drop the code with github
@scriptintoplaces2382
@scriptintoplaces2382 2 жыл бұрын
if he did that you wouldnt learn anything
@rohitprogrammer
@rohitprogrammer Жыл бұрын
Y u want want github ust go through the tutorial u will get all the answers...
@ChamellyLizardo
@ChamellyLizardo Жыл бұрын
El icono de la paleta donde lo busco?
@siddharthsharma2540
@siddharthsharma2540 2 жыл бұрын
how can i apply trim on line when line are intersected
@tranngochung4850
@tranngochung4850 3 жыл бұрын
I LOVE U
@kittyboochanyesbongono8467
@kittyboochanyesbongono8467 7 ай бұрын
4:42
@mihajloradenkovic4083
@mihajloradenkovic4083 3 жыл бұрын
What is lf in set_point???
@ivanmarano859
@ivanmarano859 2 жыл бұрын
In C#, a lowercase f after a number indicates that the value should be treated as a float
@yohei._22
@yohei._22 10 ай бұрын
@@ivanmarano859 it marks me error how can I solve it?
@ambiorireyes
@ambiorireyes 2 жыл бұрын
Hey Rohit how i can add the selection shapes the one the paint of microsoft have it the fontion of this is to select cut and paster what you cut in other places plz if you can help me this that
@DiegoEstrategia
@DiegoEstrategia 2 жыл бұрын
do you know how to do automatic balloon selection on MagickWand image in c#
@Akoshfx
@Akoshfx Жыл бұрын
If I try to paint with a fill outside the shapes, the program gives me an error, what should I write? Thanks for answer.
@rohitprogrammer
@rohitprogrammer Жыл бұрын
Go through the tutorial again, may b u r missing some code.. and let me know..!
@MixShow300
@MixShow300 3 жыл бұрын
You don't show how to change cursor when selecting tool
@ChrisRM_380
@ChrisRM_380 2 жыл бұрын
For me the fill button acted the same as the pen for me on my visual studio 2022 (I fixed it)
@dannieblack4245
@dannieblack4245 10 ай бұрын
How can you implement an undo/redo feature ?
@rohitprogrammer
@rohitprogrammer 9 ай бұрын
Here's a simple example to illustrate these steps by Rohit programming zone -------------------;---;--- This is a basic example to demonstrate the concept. In a real paint application, you would need to integrate this functionality with your drawing operations and handle various types of actions (e.g., drawing lines, changing colors). --------------- using System; using System.Collections.Generic; class PaintProgram { private Stack undoStack = new Stack(); private Stack redoStack = new Stack(); public void DrawLine() { // Simulated drawing action Console.WriteLine("Drawing a line..."); // Push drawing action onto undo stack undoStack.Push(() => Console.WriteLine("Undo: Erase the line")); // Clear redo stack since new action invalidates future redo operations redoStack.Clear(); } public void Undo() { if (undoStack.Count > 0) { Action undoAction = undoStack.Pop(); undoAction(); // Apply inverse of the action redoStack.Push(undoAction); // Push onto redo stack } else { Console.WriteLine("Nothing to undo."); } } public void Redo() { if (redoStack.Count > 0) { Action redoAction = redoStack.Pop(); redoAction(); // Apply redo action undoStack.Push(redoAction); // Push onto undo stack } else { Console.WriteLine("Nothing to redo."); } } } class Program { static void Main(string[] args) { PaintProgram paintProgram = new PaintProgram(); // Simulate user actions paintProgram.DrawLine(); paintProgram.DrawLine(); paintProgram.Undo(); // Undo one line paintProgram.Redo(); // Redo the undone line } }
@yabovax7403
@yabovax7403 Жыл бұрын
Como guardar y luego abrir para continuar dibujando ?
@paradigma9161
@paradigma9161 15 күн бұрын
Güzel calisiyor ama ekran dalgalaniyor onu nasil çözebilirim?
@malcolmpalmer2437
@malcolmpalmer2437 Жыл бұрын
I'm able to Save the drawing as a jpg , but how can I Open the file with the same drawing and then edit it?
@malcolmpalmer2437
@malcolmpalmer2437 Жыл бұрын
I've solved this. I've created an Open button and reloaded the jpg file.
@abdulrehmannasir497
@abdulrehmannasir497 Жыл бұрын
Please tell me too
@abdulrehmannasir497
@abdulrehmannasir497 Жыл бұрын
​@@malcolmpalmer2437 share the code
@white_prince_libra
@white_prince_libra Жыл бұрын
👍
@zharfaneshan8225
@zharfaneshan8225 2 жыл бұрын
Sir, may I ask what does sX , sY , cX, cY represents.
@rohitprogrammer
@rohitprogrammer 2 жыл бұрын
These r variables which r used to measure coordinates....
@moltony
@moltony 3 жыл бұрын
great thx
@LucasRibeiro-ho1tg
@LucasRibeiro-ho1tg 2 жыл бұрын
what a GOAT
@topgearIQ
@topgearIQ Ай бұрын
Fill color donot work
@bugatti555xd3
@bugatti555xd3 9 ай бұрын
error in BTN_Pic_Color.BackColor = ((Bitmap)Select_color.Image).GetPixel(Punto.X, Punto.X); System.ArgumentOutOfRangeException: ''The parameter must be positive and less than the height. Parameter name: y'
@randallsanchez171
@randallsanchez171 3 жыл бұрын
How can I draw arrows?
@vuongvuong975
@vuongvuong975 Жыл бұрын
could you give me the file code?
@maryk7560
@maryk7560 3 жыл бұрын
Could you drop the picture "color_palette", please?
@aaronconvery
@aaronconvery Жыл бұрын
Bro just Printscreen the video
@silent_charted72
@silent_charted72 11 ай бұрын
Kia mtlb ? ​@@aaronconvery
@roxkingreus9373
@roxkingreus9373 2 жыл бұрын
Can you give me the source code please?
@Omar555-o0o
@Omar555-o0o Жыл бұрын
how to create a pen cursor
@rohitprogrammer
@rohitprogrammer Жыл бұрын
Here is an example C# Windows Forms program that creates a pen cursor: Rohit Programming Zone _---+---------------+------_ using System; using System.Drawing; using System.Windows.Forms; namespace PenCursorExample { public partial class Form1 : Form { public Form1() { InitializeComponent(); this.Cursor = CreatePenCursor(); } private Cursor CreatePenCursor() { Bitmap cursorBitmap = new Bitmap(32, 32); Graphics g = Graphics.FromImage(cursorBitmap); g.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.AntiAlias; g.FillEllipse(Brushes.Black, 0, 0, 32, 32); g.Dispose(); IntPtr cursorHandle = cursorBitmap.GetHicon(); Cursor cursor = new Cursor(cursorHandle); return cursor; } } } This program creates a 32x32 pixel bitmap that contains a black circle drawn with anti-aliasing, and uses the bitmap to create a new cursor. The CreatePenCursor() method returns a Cursor object that can be set as the form's cursor by assigning it to the Cursor property of the form.
@rohitprogrammer
@rohitprogrammer Жыл бұрын
To create a pen cursor in C# for a Windows application, you can use the following code: // Create a new cursor object Cursor penCursor = new Cursor(Properties.Resources.penCursor.GetHicon()); // Set the cursor of the form to the pen cursor this.Cursor = penCursor; In this code, we create a new cursor object from an image resource called "penCursor". We then set the form's cursor to the pen cursor using the Cursor property...
@Omar555-o0o
@Omar555-o0o Жыл бұрын
Thank you very much
@jupiter1680
@jupiter1680 3 жыл бұрын
How to Zoom out zoom in?
@rohitprogrammer
@rohitprogrammer Жыл бұрын
Chek the tutorial for more info...!
@emineardic2501
@emineardic2501 3 жыл бұрын
how to add text
@MixShow300
@MixShow300 3 жыл бұрын
Use DrawString()
@КириллКоганти
@КириллКоганти Жыл бұрын
norm
@fahadmuhammadkhan
@fahadmuhammadkhan 3 жыл бұрын
the first tool(pencil) does not work
@jesuslozano2550
@jesuslozano2550 3 жыл бұрын
MIRA WE LA NETA NI ME VEO EL VIEDO AUN PERO SE QUE ME SALVARAS EL SEMESTRE X3
@Dsyboot
@Dsyboot 2 жыл бұрын
Wtf por qué hay 3 comentarios que dicen al chile
@moisesvalenzuela575
@moisesvalenzuela575 3 жыл бұрын
AL CHILE ME SALVAS EL SEMESTRE ERES UN CRACK WEY LIKE Y ME SUSCRIBO GUAPO
@kittyboochanyesbongono8467
@kittyboochanyesbongono8467 7 ай бұрын
7:40
@pedrodavidalmadavalenzuela7194
@pedrodavidalmadavalenzuela7194 3 жыл бұрын
AL CHILE ME SALVAS EL SEMESTRE ERES UN CRACK WEY LIKE Y ME SUSCRIBO GUAPO
Earth Orbit Model in C# Visual Studio By Rohit Programming Zone
25:10
Rohit Programming Zone
Рет қаралды 4,1 М.
Music Player in C# Visual Studio By Rohit Programming Zone
31:05
Rohit Programming Zone
Рет қаралды 34 М.
My scorpion was taken away from me 😢
00:55
TyphoonFast 5
Рет қаралды 2,7 МЛН
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 54 МЛН
Правильный подход к детям
00:18
Beatrise
Рет қаралды 11 МЛН
C# How to Use Paint and the C# Graphics Class to Draw Lines
37:36
Chris Merritt
Рет қаралды 198 М.
C# .NET Windows Form | СОЗДАЁМ PAINT НА C#
23:40
ChannelOf TwoGentlemen
Рет қаралды 56 М.
Drawing Graphics with C and Windows API is Easy
5:17
Nir Lichtman
Рет қаралды 40 М.
Full Screen Desktop Application Designing in Visual C#
19:01
Code with HuSyN
Рет қаралды 85 М.
C# Winform Paint
11:27
Mr Programmer
Рет қаралды 97 М.
C# WPF Modern UI Flat Design Tutorial
20:25
Payload
Рет қаралды 223 М.
My scorpion was taken away from me 😢
00:55
TyphoonFast 5
Рет қаралды 2,7 МЛН