Aspose.Imaging.Examples.CSharp.ModifyingAndConvertingImages.PSD.DetectFlattenedPSD.Run C# (CSharp) Method

Run() public static method

public static Run ( ) : void
return void
        public static void Run()
        {
            // ExStart:DetectFlattenedPSD
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir_PSD();

            // Load a PSD file
            using (PsdImage image = (PsdImage)Image.Load(dataDir + "samplePsd.psd"))
            {
                // Do processing, Get the true value if PSD is flatten and false in case the PSD is not flatten.
                Console.WriteLine(image.IsFlatten);
            }
            // ExEnd:DetectFlattenedPSD
        }
    }
DetectFlattenedPSD