Ejemplo n.º 1
0
    public static void Run(string effectIdentifier, double hue = 0, double saturation = 255, double brightness = 255)
    {
        ProPhotoColor      color  = HsvToRgb(hue, saturation / 255, brightness / 255);
        SolidColor2DEffect effect = (SolidColor2DEffect)ContentObjectAccessor.GetObject(effectIdentifier);

        effect.Value = color;
    }
Ejemplo n.º 2
0
        public static void Run(out string hex, out ProPhotoColor color, int red = 0, int green = 0, int blue = 0, int alpha = 255)

       
    {
                hex    = String.Format("#{0}{1}{2}{3}", alpha.ToString("X2"), red.ToString("X2"), green.ToString("X2"), blue.ToString("X2"));
                 color = new ProPhotoColor(hex);
                 
    }