hej!

  what i am actually after is not setting up 2 bit 
  grayscale mode, but actually making my palm application
  read and display a .bmp file which is 2bit grayscale.

  :)) but thankz anyhow! i knew that stuff already

  cheers.

az.
--
Aaron Ardiri 
Lecturer                       http://www.hig.se/~ardiri/
University-College i G�vle     mailto:[EMAIL PROTECTED]
SE 801 76 G�vle SWEDEN       
Tel: +46 26 64 87 38           Fax: +46 26 64 87 88
Mob: +46 70 352 8192           A/H: +46 26 10 16 11

On Mon, 26 Apr 1999, Jun-Kiat Lam wrote:

> Hi Aaron,
> 
> I have a small simple sample (gee what a rhyme!) that draws 2-bit bitmaps
> following the "Seeing gray" article's instructions. I'll send it to you via
> direct email.
> 
> Hope this helps.
> 
> Rgds,
> JK Lam
> Metrowerks technical Support
> 
> ----- Original Message -----
> From: Aaron Ardiri <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Sunday, April 25, 1999 10:47 AM
> Subject: 2bit greyscale?
> 
> 
> > hej!
> >
> >   just wondering if anyone had any references to drawing
> >   2bit grayscale images?
> >
> >   i have referred to the "seeinggray" gray article at
> >   the Palm site, however it was not explanatory enough.
> >
> >   currently, my application using 1bit bitmaps, however
> >   i want to use 2bit (to have the gray levels). any ideas,
> >   source code references? demos?
> >
> >   i have checked out <UI/WindowNew.h> and here is the
> >   Bitmap structure:
> >
> > ---
> > typedef struct {
> >    Word            width;
> >    Word            height;
> >    Word            rowBytes;
> >    BitmapFlagsType flags;
> >    Byte            pixelSize;       // bits/pixel
> >    Byte            version;         // version of bitmap. This is vers 1
> >    Word            nextDepthOffset; // # of DWords to next BitmapType
> >                                     //  from beginnning of this one
> >    Word            reserved [2];
> > // Byte            bits[]           // If pixelSize == 1:
> >                                     //   this is the start of the pixels
> >                                     // If pixelSize >= 2, we have:
> >                                     //   ColorTableType followed by pixels
> >                                     //   In most cases the ColorTableType
> will
> >                                     //   have 0 entries however and be
> only 1
> >                                     //   word long.
> > } BitmapType;
> > ---
> >
> >   i dont recall finding any utilities that generated 2 bit
> >   bitmaps, would this mean we would have to load the
> >   bitmaps into the palm application, then hack the memory
> >   to get 2bit? - this structure even comments out "bits" -
> >   so there is no direct way of accessing the color values
> >   without poking into "unknown" memory.
> >
> >   cheers.
> >
> > az.
> > --
> > Aaron Ardiri
> > Lecturer                       http://www.hig.se/~ardiri/
> > University-College i G�vle     mailto:[EMAIL PROTECTED]
> > SE 801 76 G�vle SWEDEN
> > Tel: +46 26 64 87 38           Fax: +46 26 64 87 88
> > Mob: +46 70 352 8192           A/H: +46 26 10 16 11
> >
> >
> 
> 
> 

Reply via email to