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; } }
public ParticleInfo(int c, ResampleMethod r) { Count = c; Resample = r; Set = true; }