Exemple #1
0
        public static IImage <bool> GenerateBinary(int width, int height)
        {
            ErrorChecker.CheckWidthHeight(width, height);

            return(new BinaryImage(width, height, new bool[width * height]));
        }
Exemple #2
0
        public static IImage <double> Generate(int width, int height)
        {
            ErrorChecker.CheckWidthHeight(width, height);

            return(new Image(width, height, new double[width * height]));
        }
Exemple #3
0
        public static IImage <BGRA> GenerateBgra(int width, int height)
        {
            ErrorChecker.CheckWidthHeight(width, height);

            return(new BgraImage(width, height, new BGRA[width * height]));
        }
Exemple #4
0
        public static IImage <HSV> GenerateHsv(int width, int height)
        {
            ErrorChecker.CheckWidthHeight(width, height);

            return(new HsvImage(width, height, new HSV[width * height]));
        }
Exemple #5
0
        public static IImage <CMYK> GenerateCmyk(int width, int height)
        {
            ErrorChecker.CheckWidthHeight(width, height);

            return(new CmykImage(width, height, new CMYK[width * height]));
        }
Exemple #6
0
        public static IImage <RGB> GenerateRgb(int width, int height)
        {
            ErrorChecker.CheckWidthHeight(width, height);

            return(new RGBImage(width, height));
        }
Exemple #7
0
        /// <summary>
        /// Generates a blank complex image
        /// </summary>
        /// <param name="width">Image Width</param>
        /// <param name="height">Image Height</param>
        /// <returns>"Blank" Complex Image</returns>
        public static IImage <Complex> GenerateComplex(int width, int height)
        {
            ErrorChecker.CheckWidthHeight(width, height);

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