Calculating the required buffer size for the WriteableBitmap.WritePixels method

前端 未结 6 2201
甜味超标
甜味超标 2020-12-18 20:19

How do I calculate the required buffer size for the WriteableBitmap.WritePixels method?

I am using the overload taking four parameters, the first is an Int32Rect, th

6条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-18 20:27

    I am work with this. 60z fs

       this.playerOpacityMaskImage.WritePixels(
                    new Int32Rect(0, 0, this.depthWidth, this.depthHeight),
                    this.greenScreenPixelData,
                    this.depthWidth * ((this.playerOpacityMaskImage.Format.BitsPerPixel + 7) / 8),
                    0);
    

提交回复
热议问题