What is the most efficient way to go from a System.Drawing.Bitmap (of any format, not a specific one) to a int[] in the form of R G B R G B R G B etc? I don't want the bitmap data in the format it actually is laid out in memory (no stride, no padding, no nothing) but i'm not sure as to what's the fastest way to go from bitmap to what i need, obviously getpixel isn't the way as it is really slow, any advice is welcome.
Additional libraries are not an option, anything .net is fair game however (including .net 4.6 / VS 2015 RC)
edit : 3 arrays (one per channel) is fine too althought i assume this wouldn't be faster to retrieve.