public static void Run(PageImageProcessingEventArgs e) { string commandName = e.CommandName; string arguments = e.Arguments; RasterImage image = e.Image; // check the commands var ipFunction = _ipCommands[commandName] != null ? _ipCommands[commandName] : null; if (ipFunction != null) { ipFunction(image, arguments); } if (e.IsPreview) { DemoUtils.ResizeImage(image, e.PreviewWidth, e.PreviewHeight); } }
private void ScanningService_ImageProcessing(object sender, PageImageProcessingEventArgs e) { // Perform image processing ImageProcessing.Run(e); }