public int NumberOfChannels() { var code = SafeNativeMethods.mp_ImageFrame__NumberOfChannels(mpPtr, out var value); GC.KeepAlive(this); return(ValueOrFormatException(code, value)); }