Advertisement
pushrbx

Untitled

Nov 9th, 2016
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.29 KB | None | 0 0
  1. // Copy line by line. This can happen if the image width is not divisible by four
  2.                 for (int i = 0; i < bitmap.Height; ++i)
  3.                 {
  4.                     Marshal.Copy(buffer, i * imageStride, new IntPtr(ptrBmp.ToInt64() + i * bmpData.Stride), width);
  5.                 }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement