diff options
Diffstat (limited to 'OpenSim/Region/CoreModules')
-rw-r--r-- | OpenSim/Region/CoreModules/Scripting/VectorRender/VectorRenderModule.cs | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/OpenSim/Region/CoreModules/Scripting/VectorRender/VectorRenderModule.cs b/OpenSim/Region/CoreModules/Scripting/VectorRender/VectorRenderModule.cs index 2ef89b7..e7fabbe 100644 --- a/OpenSim/Region/CoreModules/Scripting/VectorRender/VectorRenderModule.cs +++ b/OpenSim/Region/CoreModules/Scripting/VectorRender/VectorRenderModule.cs | |||
@@ -229,10 +229,10 @@ namespace OpenSim.Region.CoreModules.Scripting.VectorRender | |||
229 | alpha = temp; | 229 | alpha = temp; |
230 | } | 230 | } |
231 | } | 231 | } |
232 | // Allow a bitmap w/o the alpha component to be created | 232 | // Allow a bitmap w/o the alpha component to be created |
233 | else if (value.ToLower() == "false") { | 233 | else if (value.ToLower() == "false") { |
234 | alpha = 256; | 234 | alpha = 256; |
235 | } | 235 | } |
236 | break; | 236 | break; |
237 | case "bgcolour": | 237 | case "bgcolour": |
238 | int hex = 0; | 238 | int hex = 0; |
@@ -276,16 +276,16 @@ namespace OpenSim.Region.CoreModules.Scripting.VectorRender | |||
276 | } | 276 | } |
277 | } | 277 | } |
278 | 278 | ||
279 | Bitmap bitmap; | 279 | Bitmap bitmap; |
280 | 280 | ||
281 | if ( alpha == 256 ) | 281 | if (alpha == 256) |
282 | { | 282 | { |
283 | bitmap = new Bitmap(width, height, PixelFormat.Format32bppRgb); | 283 | bitmap = new Bitmap(width, height, PixelFormat.Format32bppRgb); |
284 | } | 284 | } |
285 | else { | 285 | else |
286 | 286 | { | |
287 | bitmap = new Bitmap(width, height, PixelFormat.Format32bppArgb); | 287 | bitmap = new Bitmap(width, height, PixelFormat.Format32bppArgb); |
288 | } | 288 | } |
289 | 289 | ||
290 | Graphics graph = Graphics.FromImage(bitmap); | 290 | Graphics graph = Graphics.FromImage(bitmap); |
291 | 291 | ||
@@ -298,13 +298,13 @@ namespace OpenSim.Region.CoreModules.Scripting.VectorRender | |||
298 | 298 | ||
299 | for (int w = 0; w < bitmap.Width; w++) | 299 | for (int w = 0; w < bitmap.Width; w++) |
300 | { | 300 | { |
301 | if (alpha <= 255) | 301 | if (alpha <= 255) |
302 | { | 302 | { |
303 | for (int h = 0; h < bitmap.Height; h++) | 303 | for (int h = 0; h < bitmap.Height; h++) |
304 | { | 304 | { |
305 | bitmap.SetPixel(w, h, Color.FromArgb(alpha, bitmap.GetPixel(w, h))); | 305 | bitmap.SetPixel(w, h, Color.FromArgb(alpha, bitmap.GetPixel(w, h))); |
306 | } | 306 | } |
307 | } | 307 | } |
308 | } | 308 | } |
309 | 309 | ||
310 | GDIDraw(data, graph); | 310 | GDIDraw(data, graph); |