Ejemplo n.º 1
0
 private void SetFilter()
 {
     ImageType = ImageTypes.Rgb32bpp;
     Af.LevelsLinear newFilter = new Af.LevelsLinear();
     newFilter.InRed    = redIn.ToIntRange(0, 255);
     newFilter.OutRed   = redOut.ToIntRange(0, 255);
     newFilter.InGreen  = greenIn.ToIntRange(0, 255);
     newFilter.OutGreen = greenOut.ToIntRange(0, 255);
     newFilter.InBlue   = blueIn.ToIntRange(0, 255);
     newFilter.OutBlue  = blueOut.ToIntRange(0, 255);
     imageFilter        = newFilter;
 }
Ejemplo n.º 2
0
 private void SetFilter()
 {
     ImageType = ImageTypes.Rgb32bpp;
     Af.YCbCrLinear newFilter = new Af.YCbCrLinear();
     newFilter.InY   = yIn.ToIntRange(0, 255);
     newFilter.OutY  = yOut.ToIntRange(0, 255);
     newFilter.InCb  = cbIn.ToIntRange(0, 255);
     newFilter.OutCb = cbOut.ToIntRange(0, 255);
     newFilter.InCr  = crIn.ToIntRange(0, 255);
     newFilter.OutCr = crOut.ToIntRange(0, 255);
     imageFilter     = newFilter;
 }