nanogui: GrArea and colours
Subject:
RE: GrArea and colours
From:
Greg Haerr ####@####.####
Date:
2 Nov 1999 23:41:30 -0000
Message-Id: <01BF2550.ED11EE90.greg@censoft.com>
: pixels[ j ] = NANOX_RGB( line[ j * 3 ], line[ (j * 3) +1 ], line[
: (j * 3) +2 ]);
:
: ......loop end......
:
:
: GrArea( Nanox_GetWindowID(), Nanox_GetGCID(), x, y, width, height,
: pixels );
Nano-X doesn't really have good color image support. There is not standard
format for color images. Remember that the pixel[] value is a PIXELVAL and
is completely hardware device dependent. That is, it is only
an RGB value when you are running 24 bit truecolor. GrArea() was only
meant to paint the results of GrReadArea().
Look at the Microwindows code for DrawDIB(), and the corresponding
engine call DrawImage().
I also suggest you run the LINK_APP_WITH_SERVER=1 Makefile option.
Greg