コード例 #1
0
        private void PopulateAsteriskLabels()
        {
            ResampleMethod rm = this.resamplingAlgorithmComboBox.SelectedItem as ResampleMethod;

            if (rm == null)
            {
                return;
            }

            switch (rm.method)
            {
            default:
                this.asteriskLabel.Visible     = false;
                this.asteriskTextLabel.Visible = false;
                break;

            case ResamplingAlgorithm.SuperSampling:
                if (this.ImageWidth < this.OriginalSize.Width &&
                    this.ImageHeight < this.OriginalSize.Height)
                {
                    this.asteriskTextLabel.Text = PdnResources.GetString("ResizeDialog.AsteriskTextLabel.SuperSampling");
                }
                else
                {
                    this.asteriskTextLabel.Text = PdnResources.GetString("ResizeDialog.AsteriskTextLabel.Bicubic");
                }

                if (this.resamplingAlgorithmComboBox.Visible)
                {
                    this.asteriskLabel.Visible     = true;
                    this.asteriskTextLabel.Visible = true;
                }

                break;
            }
        }
コード例 #2
0
ファイル: Common.cs プロジェクト: VTurkovs/slam_sim_
 public ParticleInfo(int c, ResampleMethod r)
 {
     Count    = c;
     Resample = r;
     Set      = true;
 }