Anonymous user
Bitmap/Read an image through a pipe: Difference between revisions
→{{header|C}}: {{improve}} on messy code
m (→{{header|Go}}: library path updates) |
(→{{header|C}}: {{improve}} on messy code) |
||
Line 70:
=={{header|C}}==
{{improve|C|Too many dependencies, too complicated for a reader to set up.}}
{{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.
Line 103 ⟶ 105:
return NULL;
}</lang>
=={{header|Go}}==
{{works with|Go weekly.2011-12-14}}
|