Search found 3 matches
- 2019-09-24T01:38:07-07:00
- Forum: Magick.NET
- Topic: Create 8-bit depth BMP
- Replies: 4
- Views: 91560
Re: Create 8-bit depth BMP
Got the answer in the other place. Quote from there: "Windows Explorer displays all compressed BMP files as 32-bit contrary to their actual bit depths." Let's call it a bug. If one really wants to see 8 bits depth in file properties they should add the following line before the call to ToByteArray ...
- 2019-09-23T04:29:45-07:00
- Forum: Magick.NET
- Topic: Create 8-bit depth BMP
- Replies: 4
- Views: 91560
Re: Create 8-bit depth BMP
I am creating the file, but I do not write it on hard disk. Imagine there is the following line before return: System.IO.File.WriteAllBytes(@"...", result) EDIT: Actually, I do write it, but only to verify that it's 8 bits per pixel. I use WriteAllBytes for this. I'll remove this when I get a proper ...
- 2019-09-23T03:26:25-07:00
- Forum: Magick.NET
- Topic: Create 8-bit depth BMP
- Replies: 4
- Views: 91560
Create 8-bit depth BMP
I asked a question on StackOverflow, but will probably get a faster response here. I want to create a BMP file with 8 bits per pixel. I use file Properties > Details to verify the result. If Bit depth is 8 there then I got my picture. This is code that I have: byte[] input = <existing TIFF image ...