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)); }
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)); }
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)); }
public static IImage <bool> GenerateBinary(int width, int height, bool[] data) { ErrorChecker.CheckWidthHeightData(width, height, data); return(new BinaryImage(width, height, data)); }
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)); }
public static IImage <BGRA> GenerateBgra(int width, int height, BGRA[] data) { ErrorChecker.CheckWidthHeightData(width, height, data); return(new BgraImage(width, height, data)); }
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)); }
public static IImage <HSV> GenerateHsv(int width, int height, HSV[] data) { ErrorChecker.CheckWidthHeightData(width, height, data); return(new HsvImage(width, height, data)); }
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)); }
public static IImage <CMYK> GenerateCmyk(int width, int height, CMYK[] data) { ErrorChecker.CheckWidthHeightData(width, height, data); return(new CmykImage(width, height, data)); }
public static IImage <RGB> GenerateRgb(int width, int height, RGB[] data) { ErrorChecker.CheckWidthHeightData(width, height, data); return(new RGBImage(width, height, data)); }
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)); }
public static IImage <Complex> GenerateComplex(int width, int height, Complex[] data) { ErrorChecker.CheckWidthHeightData(width, height, data); return(new ComplexImage(width, height, data)); }