Example #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));
        }
Example #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));
        }
Example #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));
        }
Example #4
0
        public static IImage <bool> GenerateBinary(int width, int height, bool[] data)
        {
            ErrorChecker.CheckWidthHeightData(width, height, data);

            return(new BinaryImage(width, height, data));
        }
Example #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));
        }
Example #6
0
        public static IImage <BGRA> GenerateBgra(int width, int height, BGRA[] data)
        {
            ErrorChecker.CheckWidthHeightData(width, height, data);

            return(new BgraImage(width, height, data));
        }
Example #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));
        }
Example #8
0
        public static IImage <HSV> GenerateHsv(int width, int height, HSV[] data)
        {
            ErrorChecker.CheckWidthHeightData(width, height, data);

            return(new HsvImage(width, height, data));
        }
Example #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));
        }
Example #10
0
        public static IImage <CMYK> GenerateCmyk(int width, int height, CMYK[] data)
        {
            ErrorChecker.CheckWidthHeightData(width, height, data);

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

            return(new RGBImage(width, height, data));
        }
Example #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));
        }
Example #13
0
        public static IImage <Complex> GenerateComplex(int width, int height, Complex[] data)
        {
            ErrorChecker.CheckWidthHeightData(width, height, data);

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