nanogui: bitmap data from GrBitmap
Subject:
Re: [nanogui] bitmap data from GrBitmap
From:
"Greg Haerr" ####@####.####
Date:
2 Dec 2002 17:26:47 -0000
Message-Id: <014c01c29a26$6fb7dab0$6401a8c0@gregnewport>
> I understand, I can create a GR_BITMAP from the pixmap. But how
> can I extract the raw data from it?
A GR_BITMAP is actually just an array of unsigned shorts
(with 0-padded bits to the nearest 16-bits). You can
access it directly, as an array. The bitmap starts with the
top line, and continues for each scan line.
Regards,
Greg