svn path=/trunk/mcs/; revision=19920
stride = value;\r
}\r
}\r
+ \r
+ internal unsafe void swap_red_blue_bytes () \r
+ {\r
+ byte *start = (byte *) (void *) this.Scan0;\r
+ int stride = this.Stride;\r
+ for (int line = 0; line < this.Height; line++){\r
+ // Exchange red <=> blue bytes\r
+// fixed (byte *pbuf = start) {\r
+ byte* curByte = start;\r
+ for (int i = 0; i < this.Width; i++) {\r
+ byte t = *(curByte+2);\r
+ *(curByte+2) = *curByte;\r
+ *curByte = t;\r
+ curByte += 3;\r
+ }\r
+// }\r
+ start += stride;\r
+ }\r
+ }\r
}\r
}\r