示例#1
0
        /// <summary>
        /// Runs the test drawing and formatting images.
        /// </summary>
        private static void RunTestDrawingAndFormattingImages()
        {
            //// =====================================================
            //// =====================================================
            ////            Drawing And Formatting Images
            //// =====================================================
            //// =====================================================

            Console.WriteLine("Running drawing and formatting images tests:");

            DrawingUsingGraphics.Run();
            DrawingUsingGraphicsPath.Run();
            DrawingRectangle.Run();
            DrawingArc.Run();
            DrawingEllipse.Run();
            DrawingBezier.Run();
            CombineImages.Run();
            DrawingLines.Run();
            CreatingAnImageBySettingPath.Run();
            CreatingImageUsingStream.Run();
            DrawImagesUsingCoreFunctionality.Run();
            Imagetransparency.Run();
            DrawRasterImageOnWMF.Run();
            DrawRasterImageOnEMF.Run();
            DrawRasterImageOnSVG.Run();
            DrawVectorImageToRasterImage.Run();
        }
示例#2
0
        /// <summary>
        /// Graphics operations basics examples.
        /// </summary>
        private static void GraphicOperationsBasics()
        {
            Console.WriteLine("Starting Graphic Operations Basics Example");

            //Drawing Images
            DrawingLines.Run();
            DrawingEllipse.Run();
            DrawingRectangle.Run();
            DrawingArc.Run();
            DrawingBezier.Run();
            CoreDrawingFeatures.Run();
            DrawingUsingGraphics.Run();
            DrawingUsingGraphicsPath.Run();

            // Filters
            ApplyMedianAndWienerFilters.Run();
            ApplyGausWienerFilters.Run();
            ApplyGausWienerFiltersForColorImage.Run();
            ApplyMotionWienerFilters.Run();
            BinarizationWithFixedThreshold.Run();
            BinarizationWithOtsuThreshold.Run();
            Grayscaling.Run();
            DitheringforRasterImages.Run();
            AdjustingBrightness.Run();
            AdjustingContrast.Run();
            AdjustingGamma.Run();
            BluranImage.Run();

            // Crop, Resize, Rotate
            CroppingbyShifts.Run();
            CroppingbyRectangle.Run();
            RotatinganImage.Run();
            RotatinganImageonaSpecificAngle.Run();
            SimpleResizing.Run();
            ResizingwithResizeTypeEnumeration.Run();
            ResizeImageProportionally.Run();

            // Common operations
            VerifyImageTransparency.Run();
            AddSignatureToImage.Run();
            AddWatermark.Run();
            AddDiagnolWatermark.Run();

            CombiningImages.Run();
            ExpandandCropImages.Run();
        }