Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. WPF
  4. Need an advice about starting a raster drawing program with WPF

Need an advice about starting a raster drawing program with WPF

Scheduled Pinned Locked Moved WPF
csharpquestionwpfgraphicslearning
17 Posts 7 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Cristoff
    wrote on last edited by
    #1

    I'm sorry about bothering you with such noob question! I'd like to start programming a simple raster drawing program for WPF with layers, etc. (something like paint.net) as a learning project. Do you have any ideas where should I start? I've tried to find similar projects to look at for ideas on google but I couldn't. What components and base classes are suitable to try?

    realJSOPR D B 3 Replies Last reply
    0
    • C Cristoff

      I'm sorry about bothering you with such noob question! I'd like to start programming a simple raster drawing program for WPF with layers, etc. (something like paint.net) as a learning project. Do you have any ideas where should I start? I've tried to find similar projects to look at for ideas on google but I couldn't. What components and base classes are suitable to try?

      realJSOPR Offline
      realJSOPR Offline
      realJSOP
      wrote on last edited by
      #2
      1. Start Visual Studio 1) Click File | New... | Project... 2) On the left side of the subsequent dialog box, click "Windows" 3) On the right side, click "WPF Application" 4) At the bottom of that dialog, enter an entertaining, yet applicable name for your new project. 5) Click the OK button. 6) Next.... ah hell, I'm bored - you can take it from here.

      "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
      -----
      "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

      C 1 Reply Last reply
      0
      • realJSOPR realJSOP
        1. Start Visual Studio 1) Click File | New... | Project... 2) On the left side of the subsequent dialog box, click "Windows" 3) On the right side, click "WPF Application" 4) At the bottom of that dialog, enter an entertaining, yet applicable name for your new project. 5) Click the OK button. 6) Next.... ah hell, I'm bored - you can take it from here.

        "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
        -----
        "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

        C Offline
        C Offline
        Cristoff
        wrote on last edited by
        #3

        Nice advice. I've done it. And now if you tell me how to draw pixels on the screen you'll be my God!

        realJSOPR 1 Reply Last reply
        0
        • C Cristoff

          Nice advice. I've done it. And now if you tell me how to draw pixels on the screen you'll be my God!

          realJSOPR Offline
          realJSOPR Offline
          realJSOP
          wrote on last edited by
          #4

          I only help those who help themselves.

          "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
          -----
          "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

          C 1 Reply Last reply
          0
          • realJSOPR realJSOP

            I only help those who help themselves.

            "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
            -----
            "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

            C Offline
            C Offline
            Cristoff
            wrote on last edited by
            #5

            John Simmons / outlaw programmer wrote:

            I only help those who help themselves.

            Yeah! "God helps those who help themselves" - I know that proverb! What a senseless discussion! Not only you are not helping me but you are wasting my time by making me check your posts. Thanks a lot! ;P P.S. You've missed your opportunity to make a good deed today and help yourself gather credits for the heaven and you've made an evil one. One day you'll have to answer for your sins! :laugh:

            P realJSOPR 2 Replies Last reply
            0
            • C Cristoff

              John Simmons / outlaw programmer wrote:

              I only help those who help themselves.

              Yeah! "God helps those who help themselves" - I know that proverb! What a senseless discussion! Not only you are not helping me but you are wasting my time by making me check your posts. Thanks a lot! ;P P.S. You've missed your opportunity to make a good deed today and help yourself gather credits for the heaven and you've made an evil one. One day you'll have to answer for your sins! :laugh:

              P Offline
              P Offline
              Pete OHanlon
              wrote on last edited by
              #6

              Cristoff wrote:

              God helps those who help themselves

              So, you're saying that John is God. Please don't - his ego will run rampant.

              Cristoff wrote:

              P.S. You've missed your opportunity to make a good deed today and help yourself gather credits for the heaven and you've made an evil one. One day you'll have to answer for your sins!

              Not a good way to get others to want to help you.

              "WPF has many lovers. It's a veritable porn star!" - Josh Smith

              As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.

              My blog | My articles | MoXAML PowerToys | Onyx

              C L 2 Replies Last reply
              0
              • C Cristoff

                I'm sorry about bothering you with such noob question! I'd like to start programming a simple raster drawing program for WPF with layers, etc. (something like paint.net) as a learning project. Do you have any ideas where should I start? I've tried to find similar projects to look at for ideas on google but I couldn't. What components and base classes are suitable to try?

                D Offline
                D Offline
                Daniel Grunwald
                wrote on last edited by
                #7

                WPF is meant for vector graphics, not for bitmaps. If you want to display a bitmap in WPF and need to be able to efficiently update it in memory, look at the WriteableBitmap[^] class. If you want to render WPF vector contents onto a bitmap, take a look at RenderTargetBitmap[^].

                C 1 Reply Last reply
                0
                • C Cristoff

                  John Simmons / outlaw programmer wrote:

                  I only help those who help themselves.

                  Yeah! "God helps those who help themselves" - I know that proverb! What a senseless discussion! Not only you are not helping me but you are wasting my time by making me check your posts. Thanks a lot! ;P P.S. You've missed your opportunity to make a good deed today and help yourself gather credits for the heaven and you've made an evil one. One day you'll have to answer for your sins! :laugh:

                  realJSOPR Offline
                  realJSOPR Offline
                  realJSOP
                  wrote on last edited by
                  #8

                  I would help you further, but I have a somewhat acidic sense of humor, and I merely enjoy watching those who worship me struggle with their day-to-day problems. Then, just as things start going for the better for them, I randomly snatch away their pitiful life, reminding them of my presence. I always get a chuckle out of the surprised look on their faces.

                  "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
                  -----
                  "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

                  C 1 Reply Last reply
                  0
                  • realJSOPR realJSOP

                    I would help you further, but I have a somewhat acidic sense of humor, and I merely enjoy watching those who worship me struggle with their day-to-day problems. Then, just as things start going for the better for them, I randomly snatch away their pitiful life, reminding them of my presence. I always get a chuckle out of the surprised look on their faces.

                    "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
                    -----
                    "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

                    C Offline
                    C Offline
                    Cristoff
                    wrote on last edited by
                    #9

                    John Simmons / outlaw programmer wrote:

                    I would help you further, but I have a somewhat acidic sense of humor, and I merely enjoy watching those who worship me struggle with their day-to-day problems. Then, just as things start going for the better for them, I randomly snatch away their pitiful life, reminding them of my presence. I always get a chuckle out of the surprised look on their faces.

                    I also have a sense of black humor. And I never refuse flaming. I like every opportunity to exercise my English. I just don't think that it's appropriate to spam a serious forum. :)

                    realJSOPR 1 Reply Last reply
                    0
                    • C Cristoff

                      John Simmons / outlaw programmer wrote:

                      I would help you further, but I have a somewhat acidic sense of humor, and I merely enjoy watching those who worship me struggle with their day-to-day problems. Then, just as things start going for the better for them, I randomly snatch away their pitiful life, reminding them of my presence. I always get a chuckle out of the surprised look on their faces.

                      I also have a sense of black humor. And I never refuse flaming. I like every opportunity to exercise my English. I just don't think that it's appropriate to spam a serious forum. :)

                      realJSOPR Offline
                      realJSOPR Offline
                      realJSOP
                      wrote on last edited by
                      #10

                      Technically, it's impossible to spam when you're omnipotent.

                      "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
                      -----
                      "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

                      C 1 Reply Last reply
                      0
                      • P Pete OHanlon

                        Cristoff wrote:

                        God helps those who help themselves

                        So, you're saying that John is God. Please don't - his ego will run rampant.

                        Cristoff wrote:

                        P.S. You've missed your opportunity to make a good deed today and help yourself gather credits for the heaven and you've made an evil one. One day you'll have to answer for your sins!

                        Not a good way to get others to want to help you.

                        "WPF has many lovers. It's a veritable porn star!" - Josh Smith

                        As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.

                        My blog | My articles | MoXAML PowerToys | Onyx

                        C Offline
                        C Offline
                        Cristoff
                        wrote on last edited by
                        #11

                        Pete O'Hanlon wrote:

                        Cristoff wrote: God helps those who help themselves So, you're saying that John is God. Please don't - his ego will run rampant. Cristoff wrote: P.S. You've missed your opportunity to make a good deed today and help yourself gather credits for the heaven and you've made an evil one. One day you'll have to answer for your sins! Not a good way to get others to want to help you.

                        I don't know John. I've seen his name around here but I don't know anything about him. But you're correct in your assumption. :) And I'm also being sarcastic :laugh: or maybe I'm trying to preach to him some morale and save him from getting into Hell :laugh:

                        1 Reply Last reply
                        0
                        • D Daniel Grunwald

                          WPF is meant for vector graphics, not for bitmaps. If you want to display a bitmap in WPF and need to be able to efficiently update it in memory, look at the WriteableBitmap[^] class. If you want to render WPF vector contents onto a bitmap, take a look at RenderTargetBitmap[^].

                          C Offline
                          C Offline
                          Cristoff
                          wrote on last edited by
                          #12

                          Danke! The suggestion seems like a good idea! Thank you!

                          1 Reply Last reply
                          0
                          • realJSOPR realJSOP

                            Technically, it's impossible to spam when you're omnipotent.

                            "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
                            -----
                            "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

                            C Offline
                            C Offline
                            Cristoff
                            wrote on last edited by
                            #13

                            I disagree. God is the biggest spammer of them all. He created man!

                            T 1 Reply Last reply
                            0
                            • C Cristoff

                              I disagree. God is the biggest spammer of them all. He created man!

                              T Offline
                              T Offline
                              Todd Smith
                              wrote on last edited by
                              #14

                              Cristoff wrote:

                              I disagree. God is the biggest spammer of them all. He created man!

                              God only created a single man. That man in turn is responsible for the current mess we're in.

                              Todd Smith

                              C 1 Reply Last reply
                              0
                              • T Todd Smith

                                Cristoff wrote:

                                I disagree. God is the biggest spammer of them all. He created man!

                                God only created a single man. That man in turn is responsible for the current mess we're in.

                                Todd Smith

                                C Offline
                                C Offline
                                Cristoff
                                wrote on last edited by
                                #15

                                Todd Smith wrote:

                                God only created a single man. That man in turn is responsible for the current mess we're in.

                                That's exactly what a spammer does: he creates a software (for example) that produces all the spam mails. Do you think that the spammer writes all these mails by hand, I don't think so? So did God before that: he made the ultimate spam and garbage producing creature - the man that is capable of self reproducing the ultimate dream of a spammer-god!

                                1 Reply Last reply
                                0
                                • P Pete OHanlon

                                  Cristoff wrote:

                                  God helps those who help themselves

                                  So, you're saying that John is God. Please don't - his ego will run rampant.

                                  Cristoff wrote:

                                  P.S. You've missed your opportunity to make a good deed today and help yourself gather credits for the heaven and you've made an evil one. One day you'll have to answer for your sins!

                                  Not a good way to get others to want to help you.

                                  "WPF has many lovers. It's a veritable porn star!" - Josh Smith

                                  As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.

                                  My blog | My articles | MoXAML PowerToys | Onyx

                                  L Offline
                                  L Offline
                                  Lost User
                                  wrote on last edited by
                                  #16

                                  John is now a god. God will judge John for his sin of being John. Recursion. Universe suffers stack overflow. Vista crashes. Great, we are doomed.

                                  1 Reply Last reply
                                  0
                                  • C Cristoff

                                    I'm sorry about bothering you with such noob question! I'd like to start programming a simple raster drawing program for WPF with layers, etc. (something like paint.net) as a learning project. Do you have any ideas where should I start? I've tried to find similar projects to look at for ideas on google but I couldn't. What components and base classes are suitable to try?

                                    B Offline
                                    B Offline
                                    BillWoodruff
                                    wrote on last edited by
                                    #17

                                    Hello, "Applause" for Daniel Grunwald, who, imho, gave a considerate and appropriate response to the OP. Given the OP's question was broad enough that you could see the earth's curvature in the distance ... Still, imho, he responded with some "redeeming" sense of humour to the first rapier slash of JSOP. I've voted all the (imho) sarcastic and needless posts #1 : this is a technical forum, not the lounge! And I've voted up the OP just for the sake of sheer contrariness. Gentlemen and Gentlewomen, I ask you whether it benefits CodeProject as a whole to use the technical forums as a "dumping ground" for "interpersonal static" ? Isn't it more valuable (I'm asking rhetorically) to just politely tell the OP that the question is so broad as to be off-topic, or unanswerable, or to suggest to OP that they do a search of the many technical articles on CP that have to with drawing, drawing surfaces, bitmaps, shapes, etc. in both WPF and WinForms ? To those of you who wish to admire your "godliness" : I suggest you look in a mirror :) best, Bill

                                    "Many : not conversant with mathematical studies, imagine that because it [the Analytical Engine] is to give results in numerical notation, its processes must consequently be arithmetical, numerical, rather than algebraical and analytical. This is an error. The engine can arrange and combine numerical quantities as if they were letters or any other general symbols; and it fact it might bring out its results in algebraical notation, were provisions made accordingly." Ada, Countess Lovelace, 1844

                                    1 Reply Last reply
                                    0
                                    Reply
                                    • Reply as topic
                                    Log in to reply
                                    • Oldest to Newest
                                    • Newest to Oldest
                                    • Most Votes


                                    • Login

                                    • Don't have an account? Register

                                    • Login or register to search.
                                    • First post
                                      Last post
                                    0
                                    • Categories
                                    • Recent
                                    • Tags
                                    • Popular
                                    • World
                                    • Users
                                    • Groups