Ejemplo n.º 1
0
 private void OnePointOperation(string operation)
 {
     if (operation == "ThreshHoldGraySave")
     {
         mainImage.ThresholdLevelSave(startThLevel, endThLevel);
         InvalidateImage();
     }
     else if (operation == "StretchGrayLevel")
     {
         mainImage.StretchGrayLevel(startThLevel, endThLevel);
         InvalidateImage();
     }
     else
     {
         mainImage.OnePointOperation(operation);
         InvalidateImage();
     }
 }