nanogui: bitmap data from GrBitmap


Previous by date: 2 Dec 2002 17:26:47 -0000 Re: where can I download the pack?, Greg Haerr
Next by date: 2 Dec 2002 17:26:47 -0000 Re: microwindow compiled on MS Windows, Greg Haerr
Previous in thread: 2 Dec 2002 17:26:47 -0000 bitmap data from GrBitmap, Ikhwani, Ikhwani
Next in thread: 2 Dec 2002 17:26:47 -0000 Re: bitmap data from GrBitmap, Ikhwani, Ikhwani

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

Previous by date: 2 Dec 2002 17:26:47 -0000 Re: where can I download the pack?, Greg Haerr
Next by date: 2 Dec 2002 17:26:47 -0000 Re: microwindow compiled on MS Windows, Greg Haerr
Previous in thread: 2 Dec 2002 17:26:47 -0000 bitmap data from GrBitmap, Ikhwani, Ikhwani
Next in thread: 2 Dec 2002 17:26:47 -0000 Re: bitmap data from GrBitmap, Ikhwani, Ikhwani


Powered by ezmlm-browse 0.20.