Ejemplo n.º 1
0
        public void Startup()
        {
            _redProfile = new ColorProfile {
                Name = "red", R = 255, G = 0, B = 0
            };
            _greenProfile = new ColorProfile {
                Name = "green", R = 60, G = 170, B = 20
            };

            var config = new ProfilesConfiguration
            {
                Tolerance = 20,
                Profiles  = new ColorProfile[]
                {
                    _redProfile,
                    _greenProfile
                }
            };

            _service = new ColorProfilesService(config);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Public constructor.
 /// </summary>
 /// <param name="configuration">The profile configuration object.</param>
 public ColorProfilesService(ProfilesConfiguration configuration)
 {
     _configuration = configuration;
 }