Bitmap/Read an image through a pipe: Difference between revisions
Content added Content deleted
(→{{header|C}}: {{improve}} on messy code) |
m (→{{header|C}}: lazyness of the others is not a meter to request improvements; dependencies are like the salt; afaik there's no need of being short and self contained) |
||
Line 70: | Line 70: | ||
=={{header|C}}== |
=={{header|C}}== |
||
{{improve|C|Too many dependencies, too complicated for a reader to set up.}} |
|||
{{works with|POSIX|.1-2001}} |
{{works with|POSIX|.1-2001}} |
||
Here I've used '''convert''' by ImageMagick. It is up to the program to ''understand'' the source file type; in this way, we can read theoretically any image format ImageMagick can handle. The <tt>get_ppm</tt> function defined in [[Read ppm file]] is used. |
Here I've used '''convert''' by ImageMagick. It is up to the program to ''understand'' the source file type; in this way, we can read theoretically any image format ImageMagick can handle. The <tt>get_ppm</tt> function defined in [[Read ppm file]] is used. |