XIE example / was: Re: XCopyArea with scaling
Kip Rugger wrote:
> >> I'm afraid that's what you have to do. Most of the time you already have
> >> the image on the client side, so you may not have to retrieve it.
> >> There are extensions (Render in particular) that might help you, but they
> >> are not available everywhere so you would need fallback code anyway.
> >> By the way, scaling raster images correctly is an non-trivial problem
> >> in itself (it's basically a resampling operation). You may want to
> >> think over exactly what result you would expect and why. Unless you are
> >> satisfied by mere pixel replication/elimination, of course :)[/color]
> > Ok. I'll used my own internal code that support resampling...X11 definitely
> >need some standard work to be up to date regarding other windowing system such as
> >MacOS, Windows, etc...There are so many lacks for rendering that cause performance penalties.[/color]
> This operation is easily done by the XIE extension, the FloGeometry
> function in particular.[/color]
.... and see [url]http://lxr.mozilla.org/seamonkey/source/gfx/src/xlib/XIE.c[/url]
for an example usage.
More references for XIE:
__ . . __
(o.\ \/ /.o) [email]Roland.Mainz@informatik.med.uni-giessen.de[/email]
/O /==\ O\ MPEG specialist, C&&JAVA&&Sun&&Unix programmer
(;O/ \/ \O;) TEL +49 641 99-41370 FAX +49 641 99-41359