Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Image ByteStream  RSS feed

 
Paul Tarbit
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

Sorry, dont know where to post this...I have a black and white png image. I was wanting to load the file, and then convert every pixel to binary (ie o for black and 1 for white) then put them into a 2D array, or file.
Example...

A picture of chess board section into

110011001100
110011001100
001100110011
001100110011

I tried to explain it anyway hehe. The pixel position still kept after conversion. Well if you get what I mean and can help this would be great!!

Thanks all the best
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!