コード例 #1
0
        protected void RaiseWarning(MagickException exception)
        {
            if (_warningEvent == null)
            {
                return;
            }

            MagickWarningException warning = exception as MagickWarningException;

            if (warning != null)
            {
                _warningEvent.Invoke(this, new WarningEventArgs(warning));
            }
        }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="WarningEventArgs"/> class.
 /// </summary>
 /// <param name="exception">The MagickWarningException that was thrown.</param>
 public WarningEventArgs(MagickWarningException exception)
 {
     Exception = exception;
 }
コード例 #3
0
 /// <summary>
 /// Initializes a new instance of the WarningEventArgs class.
 /// </summary>
 /// <param name="exception">The MagickWarningException that was thrown.</param>
 public WarningEventArgs(MagickWarningException exception)
 {
   Exception = exception;
 }