32-bit BMP problems.

Karl Ramberg karl.ramberg at chello.se
Mon Mar 18 16:53:47 UTC 2002


Mark Guzdial wrote:
> 
> I'm posting this for one of the GaTech users working with MPEGs and
> the Display.
> 
> Mark
> 
> >Date: Sun, 17 Mar 2002 02:19:25 -0500 (EST)
> >From: Yisrael Lowenstein <gte356h at prism.gatech.edu>
> >To: <squeakers at cc.gatech.edu>
> >Cc: <squeak at cs.uiuc.edu>
> >Subject: [squeakers] 32-bit BMP problems.
> >Sender: owner-squeakers at cc.gatech.edu
> >Reply-To: squeakers at cc.gatech.edu
> >
> >I have been working with loading bitmaps in squeak to do Digital Video
> >Special Effects for SqueakEnd and have come across a problem:
> >
> >here's my test code:
> >
> >aform := Form fromBMPFileNamed: 32bitbitmap.BMP.
> >Transcript show: (aform colorAt: 1 at 1).

I guess the bmp is really 16 bits deep. 
Test with 
Color colorFromPixelValue: (self pixelValueAt: 1 at 1) depth: 16

Karl



More information about the Squeak-dev mailing list