Turn a set of pixels into grayscale ?
Posted: 2013-03-23T10:22:22-07:00
Hi all. This is my first post, thus please forgive my mistakes & my english. I need your helps with this situation:
I have a file with many points' coordinate. The file's content looks like this :
And I want to use Windows' commandline to convert all the above points(pixels) of "X.png" to grayscale but keep those point's alpha transparent.
I hope I described the problem clearly, please ask me anything that can make it more understandable.
Really thanks for any help !
-----------------------------
Update: my file is "Pixel.txt" which contains fixed pixels' coordinates, and "X.png" can be ANY image. That I hope I can use it like this :
But of course, that's not the correct way. I want to select all the pixel that have coordinates listed in "Pixel.txt" & convert them into graysacle, but leave the rest pixel as they are.
I have a file with many points' coordinate. The file's content looks like this :
Code: Select all
color 1224,257 point color 1224,259 point color 1050,256 point color 1057,256 point color 1058,256 point...
I hope I described the problem clearly, please ask me anything that can make it more understandable.
Really thanks for any help !
-----------------------------
Update: my file is "Pixel.txt" which contains fixed pixels' coordinates, and "X.png" can be ANY image. That I hope I can use it like this :
Code: Select all
convert X.png -colorspace gray -draw @Pixel.txt X.png