"Marcel Wouterse" on wrote...
| Hi, got a question about a proper way to do something.
|
| My source is a file where i have all pixels and colors.
|
| Something like:
| 1x1 #FF0000
| 1x2 #00FF00
| etc...
|
| It means pixel at 1x1 is red, pixel at 1x2 is green...
|
| I know (by reading the file) how big the image is going to be, so canvas
| creation is not a problem.
|
| But what would be the best way to take care that all the pixels get the
| right color?
|
| (if necessary i can change the text file).
|
See the ImageMagick 'TXT' file format...
http://www.cit.gu.edu.au/~anthony/graphics/imagick6/files/#txt
=======8<--------
# ImageMagick pixel enumeration: 100,100,255,RGB
0,0: (255,0,0)
0,1: (0,255,0)
.......
=======8<--------
The header is for an image 100x100 at bit depth 8 (0-255) without
alpha channel transparency
Anthony Thyssen ( System Programmer ) <[EMAIL PROTECTED]>
-----------------------------------------------------------------------------
There it is; dwarves are not heros, but a calculating folk with
a great idea of the value of money; -- JRR Tolkein, ``The Hobbit''
-----------------------------------------------------------------------------
Anthony's Home is his Castle http://www.cit.gu.edu.au/~anthony/
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users