Need an advice about starting a raster drawing program with WPF
-
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?
-
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?
- 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 -
- 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 -
Nice advice. I've done it. And now if you tell me how to draw pixels on the screen you'll be my God!
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 -
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/2001John 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:
-
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:
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.
-
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?
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[^].
-
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:
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 -
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/2001John 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. :)
-
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. :)
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 -
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.
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:
-
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[^].
-
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 -
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
-
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
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!
-
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.
-
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?
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