ImageMagick.ColorProfile.Load C# (CSharp) Method

Load() private static method

private static Load ( string resourcePath, string resourceName ) : ColorProfile
resourcePath string
resourceName string
return ColorProfile
    private static ColorProfile Load(string resourcePath, string resourceName)
    {
      lock (_SyncRoot)
      {
        if (!_Profiles.ContainsKey(resourceName))
        {
          using (Stream stream = TypeHelper.GetManifestResourceStream(typeof(ColorProfile), resourcePath, resourceName))
          {
            _Profiles[resourceName] = new ColorProfile(stream);
          }
        }
      }

      return _Profiles[resourceName];
    }