コード例 #1
0
        private void LoadFromPPM(PPM ppm)
        {
            hres = ppm.Width;
            vres = ppm.Height;

            for (int y = 0; y < vres; y++)
            {
                for (int x = 0; x < hres; x++)
                {
                    Vec3 c = ppm.GetColorv(x, y);
                    pixels.Add(c);
                }
            }
        }