Exemple #1
0
 private void SetStamper(Stamper stamper)
 {
     _stamper = stamper;
     selectedInputFolderText.Text   = _stamper.InputFolder != null ? _stamper.InputFolder : "Select folder";
     selectedOutputFolderText.Text  = _stamper.OutputFolder != null ? _stamper.OutputFolder : "Select file";
     selectedWatermarkText.Text     = _stamper.WatermarkFilePath != null ? _stamper.WatermarkFilePath : "Select folder";
     positionComboBox.SelectedIndex = (int)_stamper.WatermarkPosition;
     paddingUpDown.Value            = _stamper.Padding;
     watermarkWidthUpDown.Maximum   = _stamper.MaxWatermarkWidth;
     watermarkHeightUpDown.Maximum  = _stamper.MaxWatermarkHeight;
     watermarkWidthUpDown.Value     = _stamper.WatermarkWidth;
     watermarkHeightUpDown.Value    = _stamper.WatermarkHeight;
     watermarkOpacityUpDown.Value   = (decimal)_stamper.WatermarkOpacity;
 }
Exemple #2
0
 public StampProcessor(MainForm form, Stamper stamper)
 {
     _form    = form;
     _stamper = stamper;
 }