コード例 #1
0
ファイル: ImageProcessing.cs プロジェクト: sakpung/webstudy
        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);
            }
        }
コード例 #2
0
ファイル: ServiceHost.cs プロジェクト: sakpung/webstudy
 private void ScanningService_ImageProcessing(object sender, PageImageProcessingEventArgs e)
 {
     // Perform image processing
     ImageProcessing.Run(e);
 }