January 11th, 2013, 08:24 AM
How do i fill up an area with a color of a picture?
I wonder if python can fill up an area with a color of a picture?
Let me show you what im mean. You se the "Fill-in tool" in MS paint? I wonder if i can program a code who fill in e.g Findland to red from white?
If i have this picture and a change.py file. I run the change.py file and then open the picture and then Findland is gonna be red and not white. Is that possible in python?
January 11th, 2013, 11:05 AM
You could write a painting program similar to MS Paint with Python, but it would take more than an afternoon's time.
Real Programmers always confuse Christmas and Halloween because Oct31 == Dec25
January 11th, 2013, 01:57 PM
Yes. But do you recommend a import module or a package to start with?
Originally Posted by Dietrich
January 11th, 2013, 02:44 PM
You could work with tkinter, part of the standard python distribution. There are quite a few concepts to master.
[/code] are essential for python code and Makefiles!
January 11th, 2013, 04:30 PM
Here is wxBrush.
But im not sure if there is a function who can fill up areas in there. Do you se one?
Here is som example but it's in C++