0
我有这个伟大的C#代码片段,但我不能在Windows Phone中使用它,因为不支持System.Drawing.Imaging
。无论如何。如何使这个C#代码在Windows Phone中工作? BitmapData.Scan0
BitmapData bmpDat = bmp.LockBits(
new Rectangle(
0,0, bmp.Width, bmp.Height),
ImageLockMode.ReadOnly, bmp.PixelFormat);
int result = Avi.AVIStreamWrite(writeCompressed ? compressedStream : StreamPointer,
countFrames, 1,
bmpDat.Scan0,
(Int32)(bmpDat.Stride * bmpDat.Height),
0, 0, 0);
没有BitmapData
因为这一点,但我只是想bmpData.Scan0
工作,我怎么能解决这个问题而产生bmpData.Scan0
数据?
约Scan0
here