JAL-1807 still testing
[jalviewjs.git] / bin / javajs / img / PpmEncoder.js
index 1769c71..7cb6943 100644 (file)
@@ -1,23 +1,23 @@
-Clazz.declarePackage ("javajs.img");
-Clazz.load (["javajs.img.ImageEncoder"], "javajs.img.PpmEncoder", null, function () {
-c$ = Clazz.declareType (javajs.img, "PpmEncoder", javajs.img.ImageEncoder);
-Clazz.overrideMethod (c$, "setParams", 
-function (params) {
-}, "java.util.Map");
-Clazz.overrideMethod (c$, "generate", 
-function () {
-this.putString ("P6\n");
-this.putString (this.width + " " + this.height + "\n");
-this.putString ("255\n");
-var ppmPixels =  Clazz.newByteArray (this.width * 3, 0);
-for (var pt = 0, row = 0; row < this.height; ++row) {
-for (var col = 0, j = 0; col < this.width; ++col, pt++) {
-var p = this.pixels[pt];
-ppmPixels[j++] = ((p >> 16) & 0xff);
-ppmPixels[j++] = ((p >> 8) & 0xff);
-ppmPixels[j++] = (p & 0xff);
-}
-this.out.write (ppmPixels, 0, ppmPixels.length);
-}
-});
-});
+Clazz.declarePackage ("javajs.img");\r
+Clazz.load (["javajs.img.ImageEncoder"], "javajs.img.PpmEncoder", null, function () {\r
+c$ = Clazz.declareType (javajs.img, "PpmEncoder", javajs.img.ImageEncoder);\r
+Clazz.overrideMethod (c$, "setParams", \r
+function (params) {\r
+}, "java.util.Map");\r
+Clazz.overrideMethod (c$, "generate", \r
+function () {\r
+this.putString ("P6\n");\r
+this.putString (this.width + " " + this.height + "\n");\r
+this.putString ("255\n");\r
+var ppmPixels =  Clazz.newByteArray (this.width * 3, 0);\r
+for (var pt = 0, row = 0; row < this.height; ++row) {\r
+for (var col = 0, j = 0; col < this.width; ++col, pt++) {\r
+var p = this.pixels[pt];\r
+ppmPixels[j++] = ((p >> 16) & 0xff);\r
+ppmPixels[j++] = ((p >> 8) & 0xff);\r
+ppmPixels[j++] = (p & 0xff);\r
+}\r
+this.out.write (ppmPixels, 0, ppmPixels.length);\r
+}\r
+});\r
+});\r