LockedFormat tells you the color format.
LockedPixels gives you a pointer to a bank where you can read said pixels from.
LockedPitch tells you how many bytes are in each row. This number will depend on the number of pixels and how many bytes each pixel takes up.
But there might be more to it than that. It might be possible to have a pitch which is larger than the number of bytes needed to represent one row of pixels at your current image size. I don't know if that is the case or not.
I;m also pretty sure that it is fastest to peek longints from this buffer. So to achieve max speed you'd need to peek multiple longints and save the values to create every 2nd and 3rd pixel or something.
Like I said, it's complicated. :-)
LockedPixels gives you a pointer to a bank where you can read said pixels from.
LockedPitch tells you how many bytes are in each row. This number will depend on the number of pixels and how many bytes each pixel takes up.
But there might be more to it than that. It might be possible to have a pitch which is larger than the number of bytes needed to represent one row of pixels at your current image size. I don't know if that is the case or not.
I;m also pretty sure that it is fastest to peek longints from this buffer. So to achieve max speed you'd need to peek multiple longints and save the values to create every 2nd and 3rd pixel or something.
Like I said, it's complicated. :-)