aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/Scripting/VectorRender
diff options
context:
space:
mode:
authorUbitUmarov2019-11-04 20:17:12 +0000
committerUbitUmarov2019-11-04 20:17:12 +0000
commit040c8d5e9a0de8b722924d4fc5ef3d5f6c91f16a (patch)
tree7bd6363e8cf97cc00b4b40ee557b01af85eee8d6 /OpenSim/Region/CoreModules/Scripting/VectorRender
parentYEngine: fix wrong language detection on some comments in first line (diff)
downloadopensim-SC-040c8d5e9a0de8b722924d4fc5ef3d5f6c91f16a.zip
opensim-SC-040c8d5e9a0de8b722924d4fc5ef3d5f6c91f16a.tar.gz
opensim-SC-040c8d5e9a0de8b722924d4fc5ef3d5f6c91f16a.tar.bz2
opensim-SC-040c8d5e9a0de8b722924d4fc5ef3d5f6c91f16a.tar.xz
dynamic textures: add ' lossless: [true|false] ', default false, extraParam
Diffstat (limited to 'OpenSim/Region/CoreModules/Scripting/VectorRender')
-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 {