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

Openmotif 2.3 png support

9 views
Skip to first unread message

Quentin Casasnovas

unread,
Jul 12, 2008, 8:20:47 AM7/12/08
to quentin.c...@free.fr
Hey there :)

First of all, excuse my poor english.

I'm trying to use the XmGetPixmap as to load png image. Everything work
pretty well when I specify a background color, but it's not exactly what
I need...

The thing is I have a first PNG image that I print on a drawing area, and
I'd like to print another png image above the last one, so that the
background of the second png image would be the first png one.

I've googled a lot but I can't find anything about it. I've tried to set
the background color to XmUNSPECIFIED_PIXEL but I get a black background
color :s

Any Idea would be greatly apreciated :) Thanks a lot !

arahne

unread,
Jul 12, 2008, 6:53:53 PM7/12/08
to

First thing: Only 32 bit PNG images (24 bit + 8 bit alpha)
work correctly in OpenMotif 2.3, according to my experience.

I do not think Motif that supports image compositing.
But maybe on a XmPushButton, a combination of
XmNbackgroundPixamp and XmNlabelPixmap can get you close to what you need.

Best regards,

Dušan Peterc
http://www.arahne.si

0 new messages