Dicom.Imaging.PhotometricInterpretation.Lookup C# (CSharp) Method

Lookup() public static method

public static Lookup ( string photometricInterpretation ) : PhotometricInterpretation
photometricInterpretation string
return PhotometricInterpretation
        public static PhotometricInterpretation Lookup(string photometricInterpretation)
        {
            PhotometricInterpretation pi;
            if (!_photometricInterpretationMap.TryGetValue(photometricInterpretation, out pi))
                throw new DicomImagingException("Unknown Photometric Interpretation [{0}]", photometricInterpretation);
            return pi;
        }