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

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

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

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

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

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

            return(new RGBImage(width, height));
        }
Example #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));
        }