Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Copy line by line. This can happen if the image width is not divisible by four
- for (int i = 0; i < bitmap.Height; ++i)
- {
- Marshal.Copy(buffer, i * imageStride, new IntPtr(ptrBmp.ToInt64() + i * bmpData.Stride), width);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement