Maybe someone can help.

I have been playing with my attempt to load graphics in the background so 
that we can continue to use LyX whilst the conversion is taking place. I've a 
little test program that works fine althoufh the conversion is currently 
hardcoded. The pixmap is finally displayed as a xforms pixmap button (in my 
sample program, not in LyX). The question is this:

How do I scale the pixmap? It'd be really nice to specify the maximaum 
dimensions of the viewed image (maintaining aspect ratio) rather than use the 
default size of the converted pixmap.

I can see that the XPM library has a XpmSize attribute, but this doesn't 
appear to be used to set the size of the generated pixmap.

I'm using "convert" to create my original pixmap and convert has a -geometry 
option that enables me to specify the dimensions of the final pixmap, but the 
colours of this scaled pixmap are junk:

". c #0b680b680b680000",

Doesn't inspire confidence does it?

Can I do this using X routines? If so, some pointers would be welcome.

Angus

Reply via email to