r/csharp • u/isbyak • Jun 23 '20
Fun Wrote a simple C# program to draw images on Paint (Source in the comments)
Enable HLS to view with audio, or disable this notification
1.6k
Upvotes
r/csharp • u/isbyak • Jun 23 '20
Enable HLS to view with audio, or disable this notification
94
u/isbyak Jun 23 '20 edited Jun 17 '22
This program can draw binary images on MS Paint or any other similar graphics editors. This was inspired by a post on r/python
Source Code: source
146
u/iEatAssVR Jun 23 '20
That's actually so sick
43
u/DGC_David Jun 23 '20
This is pretty cool, now we just got to mix in some robotics... aaannnnddd Robot Tattoo Artist
14
u/vanya1301 Jun 23 '20
Now you can make it draw colorful images
61
u/UmutIsRemix Jun 23 '20
I knew it was Pepe and I still waited it out to see it completely so pepe can look me into my soul through my eyes. Beautiful.
Thats so sick dude, really cool!
16
u/Nicroshade Jun 23 '20
Nice work!
Why don't you use async / await? (Thread.Sleep vs Task.Delay)
6
u/plexxonic Jun 23 '20
Fucking awesome!
5
u/AdDiscombobulated335 Jun 23 '20 edited Jun 23 '20
That's really cool. I like how simple you've managed to keep it. Things like dll import shows how much you can do with Windows apis.
I wonder how it looks with different brushes selected.
5
u/Jake_Guy_11 Jun 23 '20
Awesome program! Only thing, you should probably comment your code up. Just saying, as a beginner, it would be really helpful
9
u/zuraw2006 Jun 23 '20
Cool! Nice work!
2
u/[deleted] Jun 24 '20
Is this made with .NET core or plain old .NET?
5
u/Turdsonahook Jun 23 '20
Feels good man!
5
u/null_reference_user Jun 23 '20
Ooh I've actually done this before, but mine was quite limited. I left it running in the background of some computers at school and when people walked by them they stopped and watched.
I was laughing my ass off
4
u/badpiggy490 Jun 23 '20
Just tried it. It's absolutely amazing
7
u/s-mores Jun 23 '20
Pepe printer!
3
u/JeremyRMay Jun 23 '20
That is genuinely awesome!!
3
u/4K3b1g Jun 23 '20
Nice work!
3
u/BennettTheMan Jun 23 '20
So basically you made a printer, but it's virtual! If you want to challenge yourself, I would suggest attempting to infill images based on the edges (filling in the pepegga). You could try to take things farther and trying using OpenCV Sharp and try calculating lines, edges or adding further image processing capabilities (e.g. finding the 2nd moment of inertia of the image to determine the centroid algorithmic-ally)
2
u/YeahhhhhhhhBuddy Jun 23 '20
It would be cool visually, if you could set it to draw in different directions :
I.e. bottom to top, right to left, diagonally? Etc...
2
u/MechanicalHorse Jun 23 '20
Looks good, man!
2
u/Sam_Sam_Major Jun 23 '20
This is so cool and nice work
2
u/[deleted] Jun 23 '20
Dude that is so cool. I would follow that other redditor advice. Make a robotic tattoo artist.
2
u/cthulhuatemysoul Jun 23 '20
Awesome stuff!
2
u/fbyness Jun 23 '20
Where is the source code
2
u/_Teefa Jun 23 '20
Man this is awesome, I guess I still have a lot to learn!
2
u/MaheuTaroo Jun 23 '20
U fuckin legend
2
u/motsi_one Jun 23 '20
This is quiet interesting man. Good job'
2
u/thestareater Jun 23 '20
Your program is more artistic than I am. Very well done!
2
u/MoSafwan97 Jun 23 '20
Great work
2
u/morphinapg Jun 24 '20
You're drawing the same way the robot does in I, Robot
2
u/PToN_rM Jun 24 '20
My printer can do that....
Actually pretty cool shit.
2
u/petr0564 Jun 24 '20
Shut up and take my money!
3
u/selectivehouse Jun 23 '20
Poggers
1
u/jayerp May 19 '23
Nice, now have it draw its own source code, using Papyrus font.
-8
u/[deleted] Jun 23 '20
kek