From 551bebdc84515d77bc3d7a564100efd0525a1949 Mon Sep 17 00:00:00 2001 From: Jeff Ames Date: Sun, 22 Feb 2009 01:18:49 +0000 Subject: Update svn properties, add copyright headers, minor formatting cleanup. --- .../Scripting/VectorRender/VectorRenderModule.cs | 42 +++++++++++----------- 1 file changed, 21 insertions(+), 21 deletions(-) (limited to 'OpenSim/Region/CoreModules/Scripting') 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 alpha = temp; } } - // Allow a bitmap w/o the alpha component to be created - else if (value.ToLower() == "false") { - alpha = 256; - } + // Allow a bitmap w/o the alpha component to be created + else if (value.ToLower() == "false") { + alpha = 256; + } break; case "bgcolour": int hex = 0; @@ -276,16 +276,16 @@ namespace OpenSim.Region.CoreModules.Scripting.VectorRender } } - Bitmap bitmap; - - if ( alpha == 256 ) - { - bitmap = new Bitmap(width, height, PixelFormat.Format32bppRgb); - } - else { - - bitmap = new Bitmap(width, height, PixelFormat.Format32bppArgb); - } + Bitmap bitmap; + + if (alpha == 256) + { + bitmap = new Bitmap(width, height, PixelFormat.Format32bppRgb); + } + else + { + bitmap = new Bitmap(width, height, PixelFormat.Format32bppArgb); + } Graphics graph = Graphics.FromImage(bitmap); @@ -298,13 +298,13 @@ namespace OpenSim.Region.CoreModules.Scripting.VectorRender for (int w = 0; w < bitmap.Width; w++) { - if (alpha <= 255) - { - for (int h = 0; h < bitmap.Height; h++) - { - bitmap.SetPixel(w, h, Color.FromArgb(alpha, bitmap.GetPixel(w, h))); - } - } + if (alpha <= 255) + { + for (int h = 0; h < bitmap.Height; h++) + { + bitmap.SetPixel(w, h, Color.FromArgb(alpha, bitmap.GetPixel(w, h))); + } + } } GDIDraw(data, graph); -- cgit v1.1