protected override void BeforeProcess() { _actualArgs = _arg as HSLColorArg; _sValue = _actualArgs.PixelSaturation; _bValue = _actualArgs.PixelLum * 255 / 100; _hValue = _actualArgs.PixelHue * 255 / 100; }
public override XmlElement ToXML(XmlDocument xmldoc) { if (_actualArgs == null) { _actualArgs = new HSLColorArg(); } return(_actualArgs.ToXML(xmldoc)); }
public override RgbProcessorArg Clone() { HSLColorArg it = new HSLColorArg( ); it.PixelHue = _pixelHue; it.PixelSaturation = _pixelSaturation; it.PixelLum = _pixelLum; return(it); }
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; } }
public override void CreateDefaultArguments() { _arg = new HSLColorArg(); }