c# - Stride and Width in image processing -


I have a 1 bpp image that needs to be read.

I came to the following argument. But I'm not sure what he's trying to do.

  int value = (imagebmd.Width + 15)> & Gt; 3; Byte * line = (byte *) imagebmd.Scan0; I do not know which values ​​are stored in column and row variables.   

  integer column = (imagebmd.Width + 7) & gt; & Gt; 3;  

This is the byte length of the image line, it is equal to rounding up

  columns = ceil (bitwidth / 8)  / Code> 

The line image data is pointer to the starting address.


Comments

Popular posts from this blog

python - Writing Greek in matplotlib labels, titles -

c# - LINQ to Entities does not recognize the method 'Int32 IndexOf(System.String, System.StringComparison)' method -

Pygame memory leak with transform.flip -