Ejemplo n.º 1
0
 protected override void BeforeProcess()
 {
     _actualArgs = _arg as HSLColorArg;
     _sValue     = _actualArgs.PixelSaturation;
     _bValue     = _actualArgs.PixelLum * 255 / 100;
     _hValue     = _actualArgs.PixelHue * 255 / 100;
 }
Ejemplo n.º 2
0
 public override XmlElement ToXML(XmlDocument xmldoc)
 {
     if (_actualArgs == null)
     {
         _actualArgs = new HSLColorArg();
     }
     return(_actualArgs.ToXML(xmldoc));
 }
Ejemplo n.º 3
0
        public override RgbProcessorArg Clone()
        {
            HSLColorArg it = new HSLColorArg( );

            it.PixelHue        = _pixelHue;
            it.PixelSaturation = _pixelSaturation;
            it.PixelLum        = _pixelLum;
            return(it);
        }
Ejemplo n.º 4
0
 private void Init()
 {
     _actualArg = _arg as HSLColorArg;
     _rgbs      = new byte[256];
     _reds      = new byte[256];
     _greens    = new byte[256];
     _blues     = new byte[256];
     for (int i = 0; i < 256; i++)
     {
         _reds[i] = _greens[i] = _blues[i] = _rgbs[i] = (byte)i;
     }
 }
Ejemplo n.º 5
0
 public override void CreateDefaultArguments()
 {
     _arg = new HSLColorArg();
 }