aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--OpenSim/Region/CoreModules/Scripting/VectorRender/VectorRenderModule.cs15
1 files changed, 10 insertions, 5 deletions
diff --git a/OpenSim/Region/CoreModules/Scripting/VectorRender/VectorRenderModule.cs b/OpenSim/Region/CoreModules/Scripting/VectorRender/VectorRenderModule.cs
index 5a3f359..50afe8b 100644
--- a/OpenSim/Region/CoreModules/Scripting/VectorRender/VectorRenderModule.cs
+++ b/OpenSim/Region/CoreModules/Scripting/VectorRender/VectorRenderModule.cs
@@ -217,6 +217,7 @@ namespace OpenSim.Region.CoreModules.Scripting.VectorRender
217 217
218 string[] nvps = extraParams.Split(paramDelimiter); 218 string[] nvps = extraParams.Split(paramDelimiter);
219 219
220 bool lossless = false;
220 int temp = -1; 221 int temp = -1;
221 foreach (string pair in nvps) 222 foreach (string pair in nvps)
222 { 223 {
@@ -306,10 +307,14 @@ namespace OpenSim.Region.CoreModules.Scripting.VectorRender
306 bgColor = Color.FromName(value); 307 bgColor = Color.FromName(value);
307 } 308 }
308 break; 309 break;
309 case "altdatadelim": 310 case "altdatadelim":
310 altDataDelim = value.ToCharArray()[0]; 311 altDataDelim = value.ToCharArray()[0];
311 break; 312 break;
312 case "": 313 case "lossless":
314 if (value.ToLower() == "true")
315 lossless = true;
316 break;
317 case "":
313 // blank string has been passed do nothing just use defaults 318 // blank string has been passed do nothing just use defaults
314 break; 319 break;
315 default: // this is all for backwards compat, all a bit ugly hopfully can be removed in future 320 default: // this is all for backwards compat, all a bit ugly hopfully can be removed in future
@@ -385,7 +390,7 @@ namespace OpenSim.Region.CoreModules.Scripting.VectorRender
385 390
386 try 391 try
387 { 392 {
388 imageJ2000 = OpenJPEG.EncodeFromImage(bitmap, false); 393 imageJ2000 = OpenJPEG.EncodeFromImage(bitmap, lossless);
389 } 394 }
390 catch (Exception e) 395 catch (Exception e)
391 { 396 {