예제 #1
0
 public RecolorAll(EMP_File _inputFile)
 {
     empFile             = _inputFile;
     ParticleEffectsView = EmpParticleEffect.Create(empFile);
     InitializeComponent();
     DataContext = this;
     GetAvgColor_Click(null, null);
 }
예제 #2
0
        private void SetAvgColor_Click(object sender, RoutedEventArgs e)
        {
            byte[] shift = new byte[8];

            shift[0] = (byte)(SelectedColors.R_Avg_1 - SelectedColors.R_1);
            shift[1] = (byte)(SelectedColors.G_Avg_1 - SelectedColors.G_1);
            shift[2] = (byte)(SelectedColors.B_Avg_1 - SelectedColors.B_1);
            shift[3] = (byte)(SelectedColors.A_Avg_1 - SelectedColors.A_1);
            shift[4] = (byte)(SelectedColors.R_Avg_2 - SelectedColors.R_2);
            shift[5] = (byte)(SelectedColors.G_Avg_2 - SelectedColors.G_2);
            shift[6] = (byte)(SelectedColors.B_Avg_2 - SelectedColors.B_2);
            shift[7] = (byte)(SelectedColors.A_Avg_2 - SelectedColors.A_2);

            EmpParticleEffect.ShiftColors(ParticleEffectsView, shift, IgnoreAlpha);

            MessageBox.Show(this, "Average colors successfully set!", "Information", MessageBoxButton.OK, MessageBoxImage.Information);
        }
예제 #3
0
 private void RemoveRandom_Click(object sender, RoutedEventArgs e)
 {
     EmpParticleEffect.RemoveRandomRange(ParticleEffectsView, IgnoreAlpha);
     MessageBox.Show(this, "Random color range removed.", "Remove Random", MessageBoxButton.OK, MessageBoxImage.Information);
 }
예제 #4
0
 private void RemoveAnimations_Click(object sender, RoutedEventArgs e)
 {
     EmpParticleEffect.RemoveAnimations(ParticleEffectsView, IgnoreAlpha);
     MessageBox.Show(this, "Animations removed.", "Remove Animations", MessageBoxButton.OK, MessageBoxImage.Information);
 }