Newsgroups: comp.windows.ms.programmer Path: utzoo!utgpu!watserv1!watmath!hyper.hyper.com!bonneau From: bonneau@hyper.hyper.com (Paul Bonneau) Subject: Re: Windows DIB code (.bmp files) Message-ID: <1991May9.190018.25247@hyper.hyper.com> Reply-To: bonneau@hyper.UUCP (Paul Bonneau,,) Organization: HyperCube Inc. References: <91128.162807UH2@psuvm.psu.edu> Date: Thu, 9 May 1991 19:00:18 GMT In article <91128.162807UH2@psuvm.psu.edu> UH2@psuvm.psu.edu (Lee Sailer) writes: >Does the SDK inlcude functions to read and write this format? >Does any other library? I have a reader/writer for the BW format, >but would like to avoid reinventing the entire wheel... > > lee > While there is no API for reading and writing a DIB, there is sample code supplied with the SDK for doing so. Look at the "showdib" under "samples". Be warned though, the code as it is rather buggy. I can't remember offhand where I found bugs, but it had something to do with the data in the DIB headers... cheers - Paul Bonneau.