public static byte CalculateStride(ChannelFormat format, int dimention) { return((byte)(format.GetSize() * dimention)); }