Re: BMP pixel array



> I don't know if this is the right place to show my question.
> I can't understand why, in the BMP array after the headers, i find some zero
> that aren't in the real BMP image. This zero are at the end of a single pixel
> row. Sometime i find three zeros. I've seen, in a web page, that if a row
> ins't a multiple of 4 it need to add one, two or three zeros to reach this
> multiple of 4. I've tried to understand it but with no positive result.
> Somebody can explain me how this work? If you know a code about it better.

This is normal, each scan-line of Bitmap data is padded to align the next scan on a DWord (4-byte) boundary.
Hope this helps,

Mike


- Microsoft Visual Basic MVP -
E-Mail: EDais@xxxxxxxx
WWW: Http://EDais.mvps.org/


.



Relevant Pages

  • BMP pixel array
    ... I can't understand why, in the BMP array after the headers, i find some zero ... ins't a multiple of 4 it need to add one, two or three zeros to reach this ...
    (microsoft.public.dotnet.general)
  • BMP pixel array
    ... I can't understand why, in the BMP array after the headers, i find some zero ... ins't a multiple of 4 it need to add one, two or three zeros to reach this ...
    (microsoft.public.win32.programmer.gdi)
  • Re: BMP Pixel array
    ... >I can't understand why, in the BMP array after the headers, i find some zero ... This zero are at the end of a single pixel ... >ins't a multiple of 4 it need to add one, two or three zeros to reach this ... Say you have a 4-bit DIB in a bitmap, ...
    (microsoft.public.vc.language)
  • BMP pixel array
    ... I can't understand why, in the BMP array after the headers, i find some zero ... ins't a multiple of 4 it need to add one, two or three zeros to reach this ...
    (microsoft.public.dotnet.languages.vc)
  • BMP Pixel array
    ... I can't understand why, in the BMP array after the headers, i find some zero ... ins't a multiple of 4 it need to add one, two or three zeros to reach this ...
    (microsoft.public.vc.language)