any can explain the function of stride in bitmapdata?

后端 未结 5 436
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-01 11:25
        Bitmap bit1 = new Bitmap( bmpimg , width , height );
        Bitmap bit2 = new Bitmap( bmp , width , height );

        Bitmap bmpresult = new Bitmap( width          


        
5条回答
  •  时光说笑
    2020-12-01 12:13

    Stride is the number of bytes your code must iterate past to reach the next vertical pixel.

    This may be different from the image's width * pixel size if hardware requires a width of a certain multiple.

提交回复
热议问题