示例#1
0
    private void Awake()
    {
        if (main == null)
        {
            main = this;
        }
        else if (main != this)
        {
            Destroy(gameObject);
        }

        cae  = Camera.main.GetComponent <ColorAdjustEffect>();
        wwce = Camera.main.GetComponent <WaterWaveClickEffect>();
    }
 async Task <Uri> ColorAdjust(int RedPercentage, int GreenPercentage, int BluePercentage)
 {
     using (var source = new StorageFileImageSource(imageStorageFile))
         using (var contrastEffect = new ContrastEffect(source)
         {
             Level = 0.6
         })
             using (var sharpnessEffect = new ColorAdjustEffect(contrastEffect)
             {
                 Blue = (BluePercentage / 100), Green = (GreenPercentage / 100), Red = (RedPercentage / 100)
             })
             {
                 LastEffect = sharpnessEffect;
                 return(await SaveToImage());
             }
 }
示例#3
0
 private void Start()
 {
     effect = camera.GetComponent <ColorAdjustEffect>();
     Run();
 }