dynamic textures: add ' lossless: [true|false] ', default false, extraParam
parent
21f86c453d
commit
040c8d5e9a
|
@ -217,6 +217,7 @@ namespace OpenSim.Region.CoreModules.Scripting.VectorRender
|
||||||
|
|
||||||
string[] nvps = extraParams.Split(paramDelimiter);
|
string[] nvps = extraParams.Split(paramDelimiter);
|
||||||
|
|
||||||
|
bool lossless = false;
|
||||||
int temp = -1;
|
int temp = -1;
|
||||||
foreach (string pair in nvps)
|
foreach (string pair in nvps)
|
||||||
{
|
{
|
||||||
|
@ -309,6 +310,10 @@ namespace OpenSim.Region.CoreModules.Scripting.VectorRender
|
||||||
case "altdatadelim":
|
case "altdatadelim":
|
||||||
altDataDelim = value.ToCharArray()[0];
|
altDataDelim = value.ToCharArray()[0];
|
||||||
break;
|
break;
|
||||||
|
case "lossless":
|
||||||
|
if (value.ToLower() == "true")
|
||||||
|
lossless = true;
|
||||||
|
break;
|
||||||
case "":
|
case "":
|
||||||
// blank string has been passed do nothing just use defaults
|
// blank string has been passed do nothing just use defaults
|
||||||
break;
|
break;
|
||||||
|
@ -385,7 +390,7 @@ namespace OpenSim.Region.CoreModules.Scripting.VectorRender
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
imageJ2000 = OpenJPEG.EncodeFromImage(bitmap, false);
|
imageJ2000 = OpenJPEG.EncodeFromImage(bitmap, lossless);
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue