예제 #1
0
        internal static void RunGmic(SafeGmicImageList list, GmicOptions options)
        {
            if (options is null)
            {
                ExceptionUtil.ThrowArgumentNullException(nameof(options));
            }

            ValidateGmicImageList(list);

            GmicErrorInfo errorInfo = new GmicErrorInfo();

            GmicStatus status = GmicNativeMethods.Instance.RunGmic(list, options, errorInfo);

            if (status != GmicStatus.Ok)
            {
                HandleError(status, errorInfo);
            }
        }
예제 #2
0
 internal GmicStatus RunGmic(SafeGmicImageList list,
                             GmicOptions options,
                             GmicErrorInfo errorInfo)
 {
     return(runGmic(list, options, errorInfo));
 }