Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Graphic programming in linux

136 views
Skip to first unread message

Jacob Leo

unread,
Oct 29, 2000, 8:01:52 PM10/29/00
to
Hi,

       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.

Derek M. Flynn

unread,
Oct 30, 2000, 12:14:49 AM10/30/00
to
Jacob Leo wrote:

> 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.

Al Amaral - SunSoft Engineering

unread,
Oct 30, 2000, 11:12:33 AM10/30/00
to

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

ken...@nojunk.rahul.net-

unread,
Oct 30, 2000, 12:55:01 PM10/30/00
to
In article <8tk6lh$qh9$1...@eastnews1.east.sun.com>,

Al Amaral - SunSoft Engineering <a...@jabba.Sun.COM> wrote:
>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.

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/

Al Amaral - SunSoft Engineering

unread,
Oct 30, 2000, 1:30:18 PM10/30/00
to

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--

Christer Palm

unread,
Oct 31, 2000, 3:22:13 PM10/31/00
to
I don't know much about windoze programming, but it sounds like we're
talking about scaling pixmaps here. You may want to have a look at
Gnome/GTK whose API's come with a rich collection of X client utility
functions. Gnome, for example, has a function
gnome_pixmap_new_from_file_at_size() function, among other functions
that let you scale pixmaps.
palm.vcf
0 new messages