OSDN Git Service

da
[psychlops/silverlight.git] / dev5 / psychlops / core / graphic / image.cs
index 64f3c1e..3bc98bf 100644 (file)
@@ -77,6 +77,21 @@ namespace Psychlops{
                        buffer.SetPixel(x, y, col);\r
                }\r
 \r
+               public void pix_raw(int x, int y, Color col)\r
+               {\r
+                       buffer.SetPixel(x, y, col);\r
+               }\r
+\r
+               public void pix_direct(int x, int y, Color col)\r
+               {\r
+                       buffer.SetPixel(x, y, col);\r
+               }\r
+\r
+               public void pix_direct(int x, int y, double r, double g, double b, double a)\r
+               {\r
+                       buffer.SetPixel(x, y, new Color(r,g,b,a));\r
+               }\r
+\r
                public void release()\r
                {\r
                }\r
@@ -92,13 +107,7 @@ namespace Psychlops{
 \r
                public void clear(Color col)\r
                {\r
-                       for (int y = 0; y < height; y++)\r
-                       {\r
-                               for (int x = 0; x < width; x++)\r
-                               {\r
-                                       pix(x, y, col);\r
-                               }\r
-                       }\r
+                       each((x, y) => col);\r
                }\r
 \r
 \r