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++ - ERROR: cannot open source file x11\xlib.h -

c - What are pthread cancelation points used for? -

c# - Show a huge number of data in DevExpress GridView -