On Tuesday 30 October 2001 4:44 pm, Lars Gullik Bjønnes wrote:
> Angus Leeming <[EMAIL PROTECTED]> writes:
> 
> | More powerful libraries like Qt could probably act on most input graphics 
> | formats direct. I haven't given much thought to the details.
> 
> But xforms also has support for this?

Not that I know of. xforms can display a pixmap. It can also load a pixmap 
from file, but Baruch decided to use the Xpm library to do this loading. The 
src/graphics directory is xforms-independent.

Neither xforms nor the Xpm library can scale a pixmap. Nor can either create 
a pixmap from other graphics formats. That's why Baruch originally decided to 
use ImageMagick's convert to convert from xyz format to xpm, but he 
ultimately changed this hard-coding so that it is controlled by the converter 
scheme. I've just run this conversion process as a forked-child, so that LyX 
can get on with life whilst the conversion is taking place. Currently, I've 
regressed this last bit because the conversion is hard-coded once again, but 
it'd be nice to be able to use the converter class to create the conversion 
script automatically.

Qt can do rather more than either of these libraries (xforms, Xpm) and 
appears to be able to load graphics asynchronously, so I guess that the 
challenge is to use the native GUI to do as much as possible rather than do 
this using external converters.

I just thought that this was a nice little stand-alone problem that would 
eventually filter back into LyX.

Angus

Reply via email to