grayscale image display?

Hi, I have an image size of 256x256 in 8bit graycale.
How can I display this onto the screen?
do I use PgDrawImage()? but this takes RGB format I think.
Thanks

it seems like i can just convert 8bit grayscale to 24bit RGB by
copying the 8bit to each R G B slots which is equal to that grayscale
color.
Is this correct?

“jinma” <matthew.jin@fmcti-dot-com.no-spam.invalid> wrote in message
news:ctu6n7$mui$1@inn.qnx.com

Hi, I have an image size of 256x256 in 8bit graycale.
How can I display this onto the screen?
do I use PgDrawImage()? but this takes RGB format I think.

Answered on http://www.openqnx.com/PNphpBB2-viewtopic-t5133-.html

Thanks