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

c++ - Cmake produces file extensions in static library archives -

c# - Roxy file manager in MVC doesn't accept session path -

c# - XML - Serialize class - Some questions -