xwem-devel
[Top] [All Lists]

Re: Displaying an image on the root window

From: Zajcev Evgeny <zevlg@xxxxxxxxx>
Subject: Re: Displaying an image on the root window
Date: Fri, 15 Apr 2005 17:40:27 +0400
User-agent: Gnus/5.1007 (Gnus v5.10.7) XEmacs/21.4 (Jumbo Shrimp, linux)
Steve Youngs <steve@xxxxxxxx> writes:

>   > Oh, you want to tile the frame background with the pixmap?  Or
>   > resample the image to full fill the frame background?
>
> No tiling.  I want to resize the image to full fill the frame
> background. 
>

Oh, thats is problematic, X does not provide ways to resize/rotate/etc
pixmaps, so to acomplish it you need a way to resize pixmap by your
own.  Algorithmically in emacs lisp it is not a problem for small
pixmaps(e.g 4x4 pixels), but for larger pixmaps you need full featured
algorithms, such as bicubic interpolation or other.  When i was
playing with pixmaps i've played with bicubic interpolation a little
(you can find it at the end of xlib-xpm.el file), but then i realized
that is too much effort for the argueable feature ..

So, no what you want is not possible with xwem, however if you will
find an external library that has function which is passed with two
arguments - Pixmaps and resamples first pixmap to the size of second
pixmap - xwem can use it via FFI ..

-- 
lg

<Prev in Thread] Current Thread [Next in Thread>