[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Xlib problems (Lol. I've only been programming in it for 10days...)



TI95NEUK@de.ibm.com wrote:

> Maybe I got the question wrong ...
> ... again ;)
>
> But why don't you just create an XImage
> and put the data ino XImage->data ?
>
> You must however make sure that you use the right format.
> (Depending on your system.)

*nods* Sounds good to me. HTF do I do it? It's not like it's totally
transparent...
The data handle is:

char *data;

What do I do with that? Last time I checked pixel values are integers too...I'm
pretty sure casting them as chars would do _something_ but I'm less than
convinced it'd do what I want it to.

> The just do an XPutImage.

*nods*, yup that works. But, as I said, I need to make the image first. Got a
tutorial / book on X images? This X lib tutoral (excellent as it is), is for
X11R4, and has 2 pages, telling me a) what an Ximage is, b) what it's structure
is, c) what functions to use on it and d) that it's new and so there's not much
else to say 'bout it...


> If you really need speed. Well, use DGA.

DGA? Expln pls?


> Or use share memory.

How does that help?

> For shaped windows, try
>
> man XShape[CombineMask|CombineRectangles|CombineRegion|........]
>
> or just man -k shape

I'll look it up. Thnx for the prompt response!!

Later!
Shadow Mint.