Hi.
I'm trying to port some image processing code I found on Code Project.
The code is C#, but I'm trying to port it to VB and there's a line I can figure out.
I tried the converter on Developerfusion but that couldn't figure it out either, so I'm hoping some of you brainiacs here can crack it![]()
VB Code:
BitmapData bmData = b.LockBits(new Rectangle(0, 0, b.Width, b.Height), ImageLockMode.ReadWrite, PixelFormat.Format24bppRgb); System.IntPtr Scan0 = bmData.Scan0; 'This is the line that bugs me. byte * p = (byte *)(void *)Scan0
I believe it creates an array of bytes starting from the memoryhandle that Scan0 points to?!?
Perhaps I need some marshal, but wouldn't know where to begin.




Reply With Quote