Image manipulation

M

markotaht

Is there a way using the python 3.3.2 whidout any additional downloaded moduls, to get a pixels RGB value?
 
G

Gary Herron

Is there a way using the python 3.3.2 whidout any additional downloaded moduls, to get a pixels RGB value?

No (I guess).


If you want a better answer, then you'll have to give us a *much* better
question. Get a pixel from *what*? (screen? image on disk? image on
web page? printed image on paper? ...?) On what operating system?
Using what kind of a graphics/imaging hardware/software? How are said
pixels being written?

Please understand how broad the term pixel is and how little information
your question has provided. Try again with a full description of what
you want, and we'll try to provide a useful answer.

Gary Herron
 
M

markotaht

Image consists of pixels. Each pixel has its RGBA values. In python whidoutany extra downloadable modules, is there a way to get those values. I knowPIG has it but i hav Python 3.3.2 so PIG wont do. In java under swingx there is a command called .getRGB() and whit some manipulation to that value ican get the R G B and A. Is there something similar in python?
 
C

Chris “Kwpolska†Warrick

Image consists of pixels. Each pixel has its RGBA values. In python whidout any extra downloadable modules, is there a way to get those values. I know PIG has it but i hav Python 3.3.2 so PIG wont do.

PIG? Did you mean PIL? In that case, go use Pillow, the Python
3-compatible fork.
 
S

Steven D'Aprano

First helpful advice i have gotten from this forum

If you insist on dropping cryptic comments with bad spelling, incoherent
sentences, and a complete lack of any context, it might be the last
advice you get too.

Please help us to help you. We are not mind readers, we cannot read your
mind and magically understand what you are talking about. Please include
content when replying to an posts. Please take the time to try to explain
your questions, with proper grammar and syntax and spelling. We will make
allowances if English is not your native language, but we won't make
allowances if you are just being lazy.

Please show small code snippets that demonstrate the problem. You should
read this site: even though it is written for Java, the basic ideas hold
for Python as well.

http://sscce.org


Remember that we are volunteers and we are not being paid to help you.
The harder you make it for us to understand your posts, the less likely
we are to solve your problem.
 
M

markotaht

teisipäev, 8. oktoober 2013 17:26.33 UTC+3 kirjutas Steven D'Aprano:
If you insist on dropping cryptic comments with bad spelling, incoherent

sentences, and a complete lack of any context, it might be the last

advice you get too.



Please help us to help you. We are not mind readers, we cannot read your

mind and magically understand what you are talking about. Please include

content when replying to an posts. Please take the time to try to explain

your questions, with proper grammar and syntax and spelling. We will make

allowances if English is not your native language, but we won't make

allowances if you are just being lazy.



Please show small code snippets that demonstrate the problem. You should

read this site: even though it is written for Java, the basic ideas hold

for Python as well.



http://sscce.org





Remember that we are volunteers and we are not being paid to help you.

The harder you make it for us to understand your posts, the less likely

we are to solve your problem.

Well english isnt my native language, and there are things i just dont knowhow to explain in any language. And i cant give all the codes i am using, since there are loads of pieces i do not own, but i know the people who made them.
 
M

markotaht

I rembembered a bit too late, are there any good tutorials for Pillow?
ImageTk.PhotoImage() keeps giving me error that there isnt such a method.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top