GetGimpCurve() private static method

private static GetGimpCurve ( Stream strm ) : Curve
strm Stream
return Curve
Esempio n. 1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="strm"></param>
        /// <param name="type"></param>
        public Curve(Stream strm, CurveTypes type)
        {
            Curve temp = null;

            if (type == CurveTypes.Photoshop)
            {
                throw new NotImplementedException();
            }
            else if (type == CurveTypes.Gimp)
            {
                temp = Curve.GetGimpCurve(strm);
            }
            else
            {
                throw new ArgumentException("invalid is CurveTypes.");
            }

            Data   = temp.Data;
            Points = temp.Points;
        }