Exemple #1
0
        static bool IsBlackAndWhite(AnalysisResult analysisResult)
        {
            if (analysisResult.Description.Tags.Contains("photo") &&
                analysisResult.Description.Tags.Contains("vintage"))
            {
                // vintage photo means a black and white photo. Black and white photos are black and white.
                return(true);
            }

            return(analysisResult.IsBlackAndWhite());
        }