User Profile

Collapse

Profile Sidebar

Collapse
kikx
kikx
Last Activity: Sep 8 '12, 09:45 PM
Joined: Aug 22 '12
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • kikx
    started a topic Drawing pen

    Drawing pen

    Hello

    I have a paint program made in C#/GDI+ in which I draw different shapes with interchangeable colors and pen sizes on a panel. I have got the shape-drawing methods working OK, but when it comes to using a free pen (as you would in MS Paint) I have made a method that does the job, just quite ugly (see pic).

    This is the code I use.
    Code:
    if (crtanje)
                {
                    debljina = float.Parse(debljina_box.Text);
    ...
    See more | Go to post

  • kikx
    replied to Save image drawn on Panel
    @kadghar
    I have tried but looks like I can't get it to work. Would you be willing to look at the source code and tell me how to make it work with a save dialog? I would be very thankful!
    See more | Go to post

    Leave a comment:


  • kikx
    replied to Save image drawn on Panel
    First, I have already created the graphics in the Form1 constructor (gr=panel1.Crea tegraphics();), does that change anything in the code you wrote?
    Second, is it possible to combine that save method you've written with a save dialog?
    See more | Go to post

    Leave a comment:


  • kikx
    replied to Save image drawn on Panel
    I'm afraid I don't understand your reply well enough, I am quite the beginner with this..
    See more | Go to post

    Leave a comment:


  • kikx
    started a topic Save image drawn on Panel

    Save image drawn on Panel

    Hello

    I have a paint program (winform appl.) made in C#/GDI+, where using MouseUp/Down/Move events I draw on a panel. Everything I need is functioning but I need help in saving (as a .bmp file) whatever is drawn on the panel. Could somebody help me with this? It would be appreciated very much. Source code available when and if needed. Thank you!
    See more | Go to post

  • kikx
    replied to Dynamic panel resize
    @Grim, using your advice, that would be something to this effect?:

    Code:
    private void Form1_Resize(object sender, EventArgs e)
            {
                panel1.Size = new Size(this.Width, this.Height);
            }
    See more | Go to post

    Leave a comment:


  • kikx
    replied to Dynamic panel resize
    It's a winform application.
    See more | Go to post

    Leave a comment:


  • kikx
    started a topic Dynamic panel resize

    Dynamic panel resize

    Hello

    I have a paint program created in C#/GDI, it's supposed to draw shapes or draw with a pen freely (and be able to change pen width and color). So far I have managed to create such a program which draws on a panel using MouseUp/Down/Move events. But there is something I cannot resolve (even though I'll bet it's so simple to solve I'll look stupid), when I maximize the window, the panel is also resized (as I have docked it) but...
    See more | Go to post
No activity results to display
Show More
Working...