Could someone help me with this
problem.
I am currently attempting to do some graphic programming in
linux in x-window os. Win NT has a API function StretchDIBits
function, I need to know the equivalent function in x-window.
If someone could give me some adivce on this question,
it will save me a lot of headache.
Many thanks.
> I am currently attempting to do some graphic programming in
> linux in x-window os. Win NT has a API function StretchDIBits
> function, I need to know the equivalent function in x-window.
If you describe what it the function does, those of us unfamiliar
with Windows might be of some help, too.
There is no such equivalent function in X, at least in Xlib or the normal
X toolkits I've ever worked with. You'll have to stretch your bitmap and
do the colortable conversions yourself, and put it on the screen or into a
bitmap using the XPutImage function or equivalent.
Whereas Windows provides a very extensive set of API's that will do just
about anything you want for you (like StretchDIBits and 4 operand rasterops),
the designers of X took a more minimalistic approach in designing their set
of API's.
--Al Amaral--
--
------------------------------------------------------------------------
Al Amaral Al.A...@East.Sun.COM
Check out my web site @ http://members.aol.com/Alamaral/WoodShop.html
There are several popular X graphics APIs that do 2 and 3D image manipulation
(PHIGS, XImage, OpenGL). My web site has some pointers.
--
Ken Lee, http://www.rahul.net/kenton/
I was only referring to the core X11 functionality accessible through Xlib.
Everything else is either an extension or layered on top of Xlib. I do
stand corrected though. There are functions in some X extensions which could
be used to implement an analog to StretchDIBits.
--Al--