public string FormatExpression(MagickSettings settings, string expression)
{
using (INativeInstance settingsNative = MagickSettings.CreateInstance(settings))
{
using (INativeInstance expressionNative = UTF8Marshaler.CreateInstance(expression))
{
IntPtr exception = IntPtr.Zero;
IntPtr result;
#if ANYCPU
if (NativeLibrary.Is64Bit)
#endif
#if WIN64 || ANYCPU
result = NativeMethods.X64.MagickImage_FormatExpression(Instance, settingsNative.Instance, expressionNative.Instance, out exception);
#endif
#if ANYCPU
else
#endif
#if !WIN64 || ANYCPU
result = NativeMethods.X86.MagickImage_FormatExpression(Instance, settingsNative.Instance, expressionNative.Instance, out exception);
#endif
CheckException(exception);
return UTF8Marshaler.NativeToManagedAndRelinquish(result);
}
}
}
public void Frame(MagickRectangle geometry)