Re: Writing a bitmap to file

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance




Grzegorz Wróbel wrote:
paul@xxxxxxxxxxx wrote:
I'm loading in a colour 24bpp bitmap, and the bmih.biHeight value is
positive. The data I'm reading in is row reversed, bottom row first.
The second bitmap I'm loading is an 8bpp bitmap, with biHeight
negative... is the actual bitmap data row reversed too?


Hah, I wonder what you'll say when you encounter BI_RLE compressed bitmap one day. :)


No fear. I'm having enough difficulty here!

Just another quick query:

When I look at the 8bpp bitmap, I find that:
if the bit = 0 it displays at black
if the bit is a small value (eg.5), it is very dark grey

if the bit is a value between, say 30 and 70, it comes across as
various shades of grey. Smaller values are a lighter grey.

It looks like any values above 100 are an extremely dark grey (so close
to black as to be undiscernible by the naked eye)

Does this sound right?

.



Relevant Pages

  • Re: Writing a bitmap to file
    ... It looks like any values above 100 are an extremely dark grey (so close ... If you are interested in the internal bitmap format you should read this (it's detailed bitmap ver 3.0 specification): http://www.whisqu.se/per/docs/graphics52.htm ...
    (microsoft.public.win32.programmer.gdi)
  • Re: Writing a bitmap to file
    ... The data I'm reading in is row reversed, bottom row first. ... The second bitmap I'm loading is an 8bpp bitmap, ... If bitmap is top-down it's biHeight is negative. ...
    (microsoft.public.win32.programmer.gdi)
  • Re: Writing a bitmap to file
    ... The second bitmap I'm loading is an 8bpp bitmap, ... If bitmap is top-down it's biHeight is negative. ...
    (microsoft.public.win32.programmer.gdi)
  • Re: Writing a bitmap to file
    ... The second bitmap I'm loading is an 8bpp bitmap, ... If bitmap is top-down it's biHeight is negative. ...
    (microsoft.public.win32.programmer.gdi)
  • Re: Drawing question
    ... that adding a new control to a panel is taking some time. ... So I am loading all controls to the panel and then I have a scrollbar to scroll through the whole checklist. ... In the background of the panel, I have a picturebox where I am loading a bitmap which I am drawing with the necessary strings I read from the xml-file. ...
    (microsoft.public.dotnet.framework.compactframework)