Lisp HUG Maillist Archive

(LWW 4.4.5) reading images with depth 16 / 32 bits

Unable to parse email body. Email id is 3961

Re: (LWW 4.4.5) reading images with depth 16 / 32 bits

On Jun 7, 2005, at 5:33 AM, Nick Levine wrote:

> Has anyone found a way to read images with depth either 16 or 32 bits?
> My application's been handed a 16 bit-depth bitmap (LispWorks gives
> the somewhat uninformative error "Invalid DIB file format") and I'd
> like to find some way around the issue.

Have you tried any file formats other than bmp? The documentation shows  
that 4.4.5 supports several formats beyond previous versions.

There is an example in examples/capi/graphics/images.lisp.

http://www.lispworks.com/documentation/lw445/CAPUG-M/html/capiuser-m 
-132.htm#pgfId-905296



John DeSoi, Ph.D.
http://pgedit.com/
Power Tools for PostgreSQL


Re: (LWW 4.4.5) reading images with depth 16 / 32 bits

Nick Levine wrote:

>Has anyone found a way to read images with depth either 16 or 32 bits?
>My application's been handed a 16 bit-depth bitmap (LispWorks gives
>the somewhat uninformative error "Invalid DIB file format") and I'd
>like to find some way around the issue.
>
>The function gp::decode-dib-header hard-wires a test for depths (1 4 8
>24). I wouldn't know whether this is just a test that's out-of-date
>given the availability now of other depths, or whether there are more
>fundamental problems with the library which does the translation.
>
>I'm not aware of any general purpose image-processing libraries in
>lisp, but maybe I was looking in the wrong places?
>
>Failing any of this, does anyone know of any general purpose libraries
>which I can commend to my user and which will successfully translate a
>16-bit image into 24-bit?
>  
>

Can MS Paint open it? It it can it can save it at  8, 256 colors and 
24bit depth.

Wade


Updated at: 2020-12-10 08:52 UTC