|
From: Daniel J S. <dan...@ie...> - 2005-11-13 03:09:50
|
Ethan A Merritt wrote: > On Saturday 12 November 2005 03:11 pm, Ethan A Merritt wrote: > >>I'd think you can do it now with no extra code at all: >> >> plot "< convert pic.jpeg rgb:-" with image > > > Hey, it works! Cool. > > 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? Would that be a (not very portable) solution? If "convert" created a slightly more sophisticated format that contains the array dimensions and data point format, we could support that format. Dan |