why where map and dynamic textures compressed lossless?
parent
9ae3452e03
commit
7838689dda
|
@ -389,7 +389,7 @@ namespace OpenSim.Region.CoreModules.Scripting.VectorRender
|
|||
|
||||
try
|
||||
{
|
||||
imageJ2000 = OpenJPEG.EncodeFromImage(bitmap, true);
|
||||
imageJ2000 = OpenJPEG.EncodeFromImage(bitmap, false);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
@ -685,7 +685,7 @@ namespace OpenSim.Region.CoreModules.Scripting.VectorRender
|
|||
case "S":
|
||||
myFontStyle |= FontStyle.Strikeout;
|
||||
break;
|
||||
case "R": //This special case resets all font properties
|
||||
case "R": //This special case resets all font properties
|
||||
myFontStyle = FontStyle.Regular;
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -153,7 +153,7 @@ namespace OpenSim.Region.CoreModules.World.LegacyMap
|
|||
using (Bitmap mapbmp = CreateMapTile())
|
||||
{
|
||||
if (mapbmp != null)
|
||||
return OpenJPEG.EncodeFromImage(mapbmp, true);
|
||||
return OpenJPEG.EncodeFromImage(mapbmp, false);
|
||||
}
|
||||
}
|
||||
catch (Exception e) // LEGIT: Catching problems caused by OpenJPEG p/invoke
|
||||
|
|
|
@ -251,7 +251,7 @@ namespace OpenSim.Region.CoreModules.World.Warp3DMap
|
|||
try
|
||||
{
|
||||
using (Bitmap mapbmp = CreateMapTile())
|
||||
return OpenJPEG.EncodeFromImage(mapbmp, true);
|
||||
return OpenJPEG.EncodeFromImage(mapbmp, false);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
|
|
@ -1673,13 +1673,13 @@ namespace OpenSim.Region.CoreModules.World.WorldMap
|
|||
newsize.Height = (int)(by * scale);
|
||||
|
||||
using(Bitmap scaledbmp = new Bitmap(mapbmp,newsize))
|
||||
data = OpenJPEG.EncodeFromImage(scaledbmp, true);
|
||||
data = OpenJPEG.EncodeFromImage(scaledbmp, false);
|
||||
}
|
||||
else
|
||||
data = OpenJPEG.EncodeFromImage(mapbmp, true);
|
||||
data = OpenJPEG.EncodeFromImage(mapbmp, false);
|
||||
}
|
||||
else
|
||||
data = OpenJPEG.EncodeFromImage(mapbmp, true);
|
||||
data = OpenJPEG.EncodeFromImage(mapbmp, false);
|
||||
|
||||
if (data != null && data.Length > 0)
|
||||
{
|
||||
|
@ -1857,7 +1857,7 @@ namespace OpenSim.Region.CoreModules.World.WorldMap
|
|||
|
||||
try
|
||||
{
|
||||
return OpenJPEG.EncodeFromImage(overlay, true);
|
||||
return OpenJPEG.EncodeFromImage(overlay, false);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
|
|
@ -189,7 +189,7 @@ namespace OpenSim.Services.Connectors.Hypergrid
|
|||
using (Bitmap bitmap = new Bitmap(filename))
|
||||
{
|
||||
//m_log.Debug("Size: " + m.PhysicalDimension.Height + "-" + m.PhysicalDimension.Width);
|
||||
imageData = OpenJPEG.EncodeFromImage(bitmap, true);
|
||||
imageData = OpenJPEG.EncodeFromImage(bitmap, false);
|
||||
}
|
||||
|
||||
AssetBase ass = new AssetBase(UUID.Random(), "region " + name, (sbyte)AssetType.Texture, regionID.ToString());
|
||||
|
|
Loading…
Reference in New Issue