Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: How to write a 24-bit BMP image?
Date: Thu, 22 Oct 2009 08:21:03 -0400
Organization: The MathWorks, Inc.
Lines: 17
Message-ID: <hbpinf$iji$1@fred.mathworks.com>
References: <hbpb63$23g$1@fred.mathworks.com>
NNTP-Posting-Host: eddinss-lt.dhcp.mathworks.com
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: fred.mathworks.com 1256214063 19058 172.31.57.98 (22 Oct 2009 12:21:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 22 Oct 2009 12:21:03 +0000 (UTC)
User-Agent: Thunderbird 2.0.0.23 (Windows/20090812)
In-Reply-To: <HIDDEN>
Xref: news.mathworks.com comp.soft-sys.matlab:579285


Elad Peer wrote:
> Hi,
> 
> I use 'imwrite' and 'imread' methods to read/write a BMP file.
> I need the file at 24-bit, but MATLAB uses (at the standard 'bmp' format) the windows 8-bit format.
> Do you know how to change this feature into 24 bit?
> 
> Thanks,
> 
> Elad

If you pass an M-by-N-by-3 array to imwrite, it will create a 24-bit BMP 
file.

---
Steve Eddins
http://blogs.mathworks.com/steve/