On Thu, 28 Feb 2002, Domen Stangar wrote:

> Hello,
> can anyone explain me what is the difference between Xshm and normal shm
> so if I create XImages in shm and then create Pixmaps for each 
> display(cannot share pixmaps) between displays or with XShmCreatePixmap can 
> this be shared ?

   I haven't thought about it, but I see no reason why you wouldn't
be able to create XImages or shm Pixmaps on two local displays using
the same shm segment.

> So is this extension any good if i can do it manually by sharing XImage.
> 
> and more..
> How to create Clip Image other way like this :
>       for(y=0;y<a.height;y++) for(x=0;x<a.width;x++)
>                       XPutPixel(xim,x,y,XGetPixel(b,x,y)?1 : 0);
> Or with words
> How to create clip image from pixmap with colors(black is transperent).
> 

   I'm not sure I understand what you're asking.  You want to copy
a Pixmap into and XImage?  X(Shm)GetImage will do that.  Or was
the pixmap deep and the XImage a one bit mask?  There's no Xlib
function to return a mask from a Pixmap and transparency key.
You'd have to do that manually, like the way you are doing.
It's inefficient, but generally there's no need to do something
like that.


                        Mark.

_______________________________________________
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert

Reply via email to