Esempio n. 1
0
        public static IImage <RGB> GenerateRgb(int width, int height, IEnumerable <RGB> data)
        {
            // Input check and convert IEnumerable<RGB> to RGB[]
            RGB[] dataArr = ErrorChecker.CheckWidthHeightData(width, height, data);

            return(new RGBImage(width, height, dataArr));
        }
Esempio n. 2
0
        public static IImage <double> Generate(int width, int height, IEnumerable <double> data)
        {
            double[] dataArr = ErrorChecker.CheckWidthHeightData(width, height, data);

            return(new Image(width, height, dataArr));
        }
Esempio n. 3
0
        public static IImage <bool> GenerateBinary(int width, int height, IEnumerable <bool> data)
        {
            bool[] dataArr = ErrorChecker.CheckWidthHeightData(width, height, data);

            return(new BinaryImage(width, height, dataArr));
        }
Esempio n. 4
0
        public static IImage <bool> GenerateBinary(int width, int height, bool[] data)
        {
            ErrorChecker.CheckWidthHeightData(width, height, data);

            return(new BinaryImage(width, height, data));
        }
Esempio n. 5
0
        public static IImage <BGRA> GenerateBgra(int width, int height, IEnumerable <BGRA> data)
        {
            BGRA[] dataArr = ErrorChecker.CheckWidthHeightData(width, height, data);

            return(new BgraImage(width, height, dataArr));
        }
Esempio n. 6
0
        public static IImage <BGRA> GenerateBgra(int width, int height, BGRA[] data)
        {
            ErrorChecker.CheckWidthHeightData(width, height, data);

            return(new BgraImage(width, height, data));
        }
Esempio n. 7
0
        public static IImage <HSV> GenerateHsv(int width, int height, IEnumerable <HSV> data)
        {
            HSV[] dataArr = ErrorChecker.CheckWidthHeightData(width, height, data);

            return(new HsvImage(width, height, dataArr));
        }
Esempio n. 8
0
        public static IImage <HSV> GenerateHsv(int width, int height, HSV[] data)
        {
            ErrorChecker.CheckWidthHeightData(width, height, data);

            return(new HsvImage(width, height, data));
        }
Esempio n. 9
0
        public static IImage <CMYK> GenerateCmyk(int width, int height, IEnumerable <CMYK> data)
        {
            CMYK[] dataArr = ErrorChecker.CheckWidthHeightData(width, height, data);

            return(new CmykImage(width, height, dataArr));
        }
Esempio n. 10
0
        public static IImage <CMYK> GenerateCmyk(int width, int height, CMYK[] data)
        {
            ErrorChecker.CheckWidthHeightData(width, height, data);

            return(new CmykImage(width, height, data));
        }
Esempio n. 11
0
        public static IImage <RGB> GenerateRgb(int width, int height, RGB[] data)
        {
            ErrorChecker.CheckWidthHeightData(width, height, data);

            return(new RGBImage(width, height, data));
        }
Esempio n. 12
0
        public static IImage <Complex> GenerateComplex(int width, int height, IEnumerable <Complex> data)
        {
            Complex[] dataArray = ErrorChecker.CheckWidthHeightData(width, height, data);

            return(new ComplexImage(width, height, dataArray));
        }
Esempio n. 13
0
        public static IImage <Complex> GenerateComplex(int width, int height, Complex[] data)
        {
            ErrorChecker.CheckWidthHeightData(width, height, data);

            return(new ComplexImage(width, height, data));
        }