|
From: Harald H. <h.h...@tu...> - 2005-11-13 20:51:39
|
On Sat, 12 Nov 2005, Daniel J Sebald wrote: > > plot '< convert tux.gif rgb:-' binary filetype=rgb array=60x70 \ > > format="%uchar %uchar %uchar" flipy u 1:2:3 with rgbimage > > > > It would be nice if that long combination of options had some > > shorter form, though. > > Yes, the array size is a manual thing... or Harald has shown another > feature for extracting the dimensions that I was unaware of. > > Well, that is nice. Can some scripts solve this? Or perhaps I could > write a very generic routine based upon this concept. Is there a way to > send out a system command from within a C program and route the data > back in somehow? Yes. Have a look at Postscript's fontfile option. It starts programmes to convert pfb or ttf to pfa by a named pipe (popen() et al.). > Would that be a (not very portable) solution? Maybe, you could adapt the concept of postscript fontfile with a operating-system-dependent default command for conversion and with user-definable changes. > If > "convert" created a slightly more sophisticated format that contains the > array dimensions and data point format, we could support that format. What about the formats pnm, pbm? They are the most basic file formats I know, and they are portable (I believe pbm stands for portable bitmap). Many programmes can produce pnm and pbm. Best regards Harald -- Harald Harders h.h...@tu... http://www.harald-harders.de |