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