Ejemplo n.º 1
0
        /// <summary>
        /// Creates the image data
        /// </summary>
        public void CreateImage()
        {
            double bmpXStep = 1.0 / (double)(BMP.Width - 1);
            double bmpYStep = 1.0 / (double)(BMP.Height - 1);
            int    xCoord, yCoord;

            for (int x = 0; x < TransformedUVCoords.GetLength(0); x++)
            {
                for (int y = 0; y < TransformedUVCoords.GetLength(1); y++)
                {
                    xCoord = (int)Math.Floor(TransformedUVCoords[y, x].U / bmpXStep);
                    yCoord = (int)Math.Floor(TransformedUVCoords[y, x].V / bmpYStep);
                    ResultBMP.SetPixel(x, y, BMP.GetPixel(xCoord, yCoord));
                }
            }

            if (TreePathData == null)
            {
                createFolderFileWMTS();
            }
            else
            {
                createFolderFileTREE();
            }
        }