home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!pmafire!news.dell.com!swrinde!cs.utexas.edu!usc!venice!gumby.dsd.trw.com!deneva!kamemoto
- From: kamemoto@spf.trw.com (Kenneth Kamemoto)
- Newsgroups: comp.windows.x.motif
- Subject: TrueColor images in XmDrawingArea
- Message-ID: <2A916FE8.487C@deneva.sdd.trw.com>
- Date: 18 Aug 92 21:47:19 GMT
- Sender: news@deneva.sdd.trw.com
- Distribution: usa
- Organization: TRW Data Systems Center, Redondo Beach, CA
- Lines: 11
-
- I am trying to display a 24-bit RGB (red, green, blue) image in an
- XmDrawingArea widget using the standard XA_RGB_BEST_MAP colormap
- (which has 16 million colors). I keep getting BadMatch errors.
- I tried creating the XmDrawingArea with XmNdepth set to 24. I
- tried using XMatchVisualInfo to get a TrueColor visual, depth 24.
- Is there something else I must do so that the (I think)
- XtWindow(drawing_area_widget) will have the proper depth and
- visual?
- --
- Kenneth I. Kamemoto
- kamemoto@spf.trw.com
-