Paint Application in C# Visual Studio By Rohit Programming Zone

Поделиться
HTML-код
  • Опубликовано: 22 окт 2024

Комментарии • 90

  • @jakob3861
    @jakob3861 2 года назад +8

    This was the best C# video i have ever seen!

  • @estebancamachoreyna8843
    @estebancamachoreyna8843 3 года назад +15

    AL CHILE ME SALVAS EL SEMESTRE ERES UN CRACK WEY LIKE Y ME SUSCRIBO GUAPO

  • @EduTech2001
    @EduTech2001 Год назад +1

    Thank you for sharing that type of video with us dear. 👌

  • @wotmastersclub5559
    @wotmastersclub5559 4 месяца назад

    3 раз смотрю и удивляюсь 👌
    Решение > 👍👍👍👍👍

  • @_ThisIsEpic_
    @_ThisIsEpic_ 4 месяца назад

    you saved our school project, thank you 🙏🙏

  • @prichaponkongpratet9859
    @prichaponkongpratet9859 7 месяцев назад +2

    Excellent

  • @hagu2388
    @hagu2388 5 месяцев назад +1

    Спасибо тебе, благодарю твоему видео я смогу закрыть лабы в Институте

  • @EduTech2001
    @EduTech2001 Год назад +1

    It is incredible bro...

  • @NguyenTam-zl2tk
    @NguyenTam-zl2tk Месяц назад

    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!

  • @ДанилЛевковский-ц8г
    @ДанилЛевковский-ц8г 5 месяцев назад

    Спасибо большое. Очень познавательно.

  • @u1krsh
    @u1krsh 2 года назад +7

    Can you Please Post the Project Files I'm having some issues in my build, i want to check

  • @ToleDiriba-o2z
    @ToleDiriba-o2z 9 месяцев назад

    👏👏👏👏👏👏👏👏👏👏👏👏👏👏

  • @carlosjohnalpay4203
    @carlosjohnalpay4203 2 года назад +2

    Cool Video. Very helpful!!!

  • @cartaselivros
    @cartaselivros Год назад +1

    wonderfull. thanks.🥇

  • @nguyenquochuy742
    @nguyenquochuy742 2 года назад +1

    Thank you so much. I love this video!!!

  • @stefanmilinkovic6433
    @stefanmilinkovic6433 Год назад +2

    16:00 for an ellipse
    18:00 for dragging graphics

  • @anilgorani6437
    @anilgorani6437 Год назад

    Thank you, I got what I want

  • @vangezto
    @vangezto Год назад

    when i add image on picturebox icant draw on it how can i be able to draw on it ?

  • @Water_Lemur
    @Water_Lemur 2 года назад +2

    nice!

  • @Lee_Je_Oh
    @Lee_Je_Oh 3 года назад +2

    The best🔥🔥🔥

  • @cyanuranus6456
    @cyanuranus6456 8 месяцев назад

    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  8 месяцев назад

      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.

  • @malcolmpalmer2437
    @malcolmpalmer2437 Год назад +1

    Can you show how to select part of the drawings then cut, copy and paste?

  • @UltraBoiDanielSalama
    @UltraBoiDanielSalama 2 года назад

    Please make a tutorial on how to connect it to client side so i can make a live painting program!

  • @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?

  • @ms.d3946
    @ms.d3946 2 года назад +4

    This was so helpful

  • @ulymastambul6257
    @ulymastambul6257 2 года назад

    thank you for sharing your knowledge with me

    • @rohitprogrammer
      @rohitprogrammer  2 года назад +1

      Ur welcome...

    • @ulymastambul6257
      @ulymastambul6257 2 года назад

      @@rohitprogrammer I wanna to learning to more in C#. can help me ?

    • @rohitprogrammer
      @rohitprogrammer  2 года назад +1

      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# ?

  • @white_prince_libra
    @white_prince_libra Год назад

    👍

  • @saiharshal9089
    @saiharshal9089 10 месяцев назад

    Can we able to paste pictures on the canvas?

  • @denizsozen360
    @denizsozen360 Год назад

    Where did you find the color part above?

  • @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

  • @yolandayanchatipanl.6432
    @yolandayanchatipanl.6432 3 года назад

    Thanks, im helping

  • @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

  • @ChamellyLizardo
    @ChamellyLizardo 9 месяцев назад

    El icono de la paleta donde lo busco?

  • @bugatti555xd3
    @bugatti555xd3 6 месяцев назад

    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'

  • @QudratovAkbar
    @QudratovAkbar Год назад

    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..!

  • @DiegoEstrategia
    @DiegoEstrategia 2 года назад

    do you know how to do automatic balloon selection on MagickWand image in c#

  • @siddharthsharma2540
    @siddharthsharma2540 2 года назад

    how can i apply trim on line when line are intersected

  • @dannieblack4245
    @dannieblack4245 7 месяцев назад

    How can you implement an undo/redo feature ?

    • @rohitprogrammer
      @rohitprogrammer  7 месяцев назад

      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
      }
      }

  • @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?

  • @sabinocorona3100
    @sabinocorona3100 2 года назад +3

    How can i turn the rectangle to 360° rectangle?

    • @dannieblack4245
      @dannieblack4245 7 месяцев назад

      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 7 месяцев назад

      OH my god your comment was 2 years old, sorry lol

  • @moltony
    @moltony 2 года назад

    great thx

  • @mihajloradenkovic4083
    @mihajloradenkovic4083 2 года назад +2

    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 7 месяцев назад

      @@ivanmarano859 it marks me error
      how can I solve it?

  • @yabovax7403
    @yabovax7403 Год назад

    Como guardar y luego abrir para continuar dibujando ?

  • @tranngochung4850
    @tranngochung4850 3 года назад +1

    I LOVE U

  • @zharfaneshan8225
    @zharfaneshan8225 2 года назад

    Sir, may I ask what does sX , sY , cX, cY represents.

    • @rohitprogrammer
      @rohitprogrammer  2 года назад +1

      These r variables which r used to measure coordinates....

  • @MixShow300
    @MixShow300 3 года назад

    You don't show how to change cursor when selecting tool

  • @chrisrodriguezm13
    @chrisrodriguezm13 2 года назад

    For me the fill button acted the same as the pen for me on my visual studio 2022 (I fixed it)

  • @assassinscreed6174
    @assassinscreed6174 3 года назад +6

    Could you drop the code with github

    • @scriptintoplaces2382
      @scriptintoplaces2382 2 года назад

      if he did that you wouldnt learn anything

    • @ADev531
      @ADev531 Год назад

      @@scriptintoplaces2382not working some features.

    • @rohitprogrammer
      @rohitprogrammer  Год назад

      Y u want want github ust go through the tutorial u will get all the answers...

  • @LucasRibeiro-ho1tg
    @LucasRibeiro-ho1tg 2 года назад

    what a GOAT

  • @kittyboochanyesbongono8467
    @kittyboochanyesbongono8467 5 месяцев назад

    7:40

  • @randallsanchez171
    @randallsanchez171 3 года назад

    How can I draw arrows?

  • @jesuslozano2550
    @jesuslozano2550 3 года назад +1

    MIRA WE LA NETA NI ME VEO EL VIEDO AUN PERO SE QUE ME SALVARAS EL SEMESTRE X3

  • @vuongvuong975
    @vuongvuong975 Год назад

    could you give me the file code?

  • @maryk7560
    @maryk7560 3 года назад

    Could you drop the picture "color_palette", please?

  • @roxkingreus9373
    @roxkingreus9373 Год назад

    Can you give me the source code please?

  • @PERBLOXIAN.
    @PERBLOXIAN. Год назад

    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...

    • @PERBLOXIAN.
      @PERBLOXIAN. Год назад

      Thank you very much

  • @КириллКоганти
    @КириллКоганти 10 месяцев назад

    norm

  • @fahadmuhammadkhan
    @fahadmuhammadkhan 2 года назад

    the first tool(pencil) does not work

  • @jupiter1680
    @jupiter1680 3 года назад +1

    How to Zoom out zoom in?

  • @emineardic2501
    @emineardic2501 3 года назад

    how to add text

  • @Dsyboot
    @Dsyboot 2 года назад

    Wtf por qué hay 3 comentarios que dicen al chile

  • @moisesvalenzuela575
    @moisesvalenzuela575 3 года назад +2

    AL CHILE ME SALVAS EL SEMESTRE ERES UN CRACK WEY LIKE Y ME SUSCRIBO GUAPO

  • @kittyboochanyesbongono8467
    @kittyboochanyesbongono8467 5 месяцев назад

    4:42

  • @pedrodavidalmadavalenzuela7194
    @pedrodavidalmadavalenzuela7194 3 года назад +2

    AL CHILE ME SALVAS EL SEMESTRE ERES UN CRACK WEY LIKE Y ME SUSCRIBO GUAPO