コード例 #1
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();
        }
コード例 #2
0
        /// <summary>
        /// Runs the test modifying and converting images.
        /// </summary>
        private static void RunTestModifyingAndConvertingImages()
        {
            //// =====================================================
            //// =====================================================
            ////            Modifying And Converting Images
            //// =====================================================
            //// =====================================================

            Console.WriteLine("Running modifying and converting images tests:");
            SupportOfFullFrameGif.Run();
            SupportExtractingPathsFromTiff.Run();
            ExportToHtml5Canvas.Run();
            CompressedVectorFormats.Run();
            ExportTiffBatchMode.Run();
            ExportToDicom.Run();
            CroppingWMFFileWhileConvertingtoPNG.Run();
            ConvertingSVGToRasterImages.Run();
            AddWatermarkToImage.Run();
            AddFramesToTIFFImage.Run();
            AdjustBrightness.Run();
            AdjustContrast.Run();
            AdjustGamma.Run();
            PNGtoPDF.Run();
            BMPToPDF.Run();
            SupportForJPEG.Run();
            RasterImageToPDF.Run();
            SupportForEPSFormat.Run();
            AlignHorizontalAndVeticalResolutionsOfImage.Run();
            ApplyGaussWienerFilter.Run();
            ApplyGaussWienerFilterForColoredImage.Run();
            ApplyingMotionWienerFilter.Run();
            ApplyMedianAndWienerFilters.Run();
            BinarizationWithFixedThreshold.Run();
            BinarizationWithOtsuThreshold.Run();
            BlurAnImage.Run();
            Bradleythreshold.Run();
            ConvertingSVGToRasterImages.Run();
            CompressingTIFFImagesWithAdobeDeflateCompression.Run();
            CompressingTIFFImagesWithLZWAlgorithm.Run();
            ConcatTIFFImages.Run();
            ConcatenatingTIFFImagesfromStream.Run();
            ConcatenateTiffImagesHavingSeveralFrames.Run();
            ConvertGIFImageLayersToTIFF.Run();
            CreatingTIFFImageWithCompression.Run();
            CreateWMFMetaFileImage.Run();
            ConvertWMFMetaFileToSVG.Run();
            DitheringRasterImages.Run();
            ExpandOrCropAnImage.Run();
            ExtractTIFFFramesToBMPImageFormat.Run();
            ExportImageToDifferentFormats.Run();
            ExportImageToPSD.Run();
            Grayscaling.Run();
            ReadAndWriteXMPDataToImages.Run();
            ResizeImageWithResizeTypeEnumeration.Run();
            ResizingWithResizeTypeEnumeration.Run();
            RotatingImageOnSpecificAngle.Run();
            SavingEachFrameInOtherRasterImageFormat.Run();
            SavingRasterImageToTIFFWithCompression.Run();
            SimpleResizeImageProportionally.Run();
            SimpleResizing.Run();
            SplittingTiffFrames.Run();
            TiffDataRecovery.Run();
            TiffOptionsConfiguration.Run();
            ControllCacheReallocation.Run();
            AddDiagonalWatermarkToImage.Run();
            ColorConversionUsingICCProfiles.Run();
            ColorConversionUsingDefaultProfiles.Run();
            AddSignatureToImage.Run();
            ExportTextAsShape.Run();
            CreateEMFMetaFileImage.Run();
            ResizeWMFFile.Run();
            ConvertWMFToWebp.Run();
            ConvertWMFToPNG.Run();
            ConvertWMFToPDF.Run();
            GetLastModifiedDate.Run();
            SupportTiffDeflate.Run();
            ConvertImageWithGrayscale.Run();
            SupportOfDIB.Run();
            SupportOfTextRenderingHint.Run();
            SupportOfSmoothingMode.Run();
            CropWMFFile.Run();
            CropEMFFile.Run();
            SupportOfDPISettingsInPdfOptions.Run();
            CommonMultipageImageExample.Run();
        }