aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Modules/VectorRenderModule.cs
diff options
context:
space:
mode:
authorAdam Frisby2008-04-21 07:09:17 +0000
committerAdam Frisby2008-04-21 07:09:17 +0000
commitfef3b3689492dea63693c964bcdbec9f5137eb5e (patch)
tree7791eef001d85d3e1de863a68f26ff9434d062ca /OpenSim/Region/Environment/Modules/VectorRenderModule.cs
parent* Terrain Module code has been reformatted to comply with guidelines. (diff)
downloadopensim-SC_OLD-fef3b3689492dea63693c964bcdbec9f5137eb5e.zip
opensim-SC_OLD-fef3b3689492dea63693c964bcdbec9f5137eb5e.tar.gz
opensim-SC_OLD-fef3b3689492dea63693c964bcdbec9f5137eb5e.tar.bz2
opensim-SC_OLD-fef3b3689492dea63693c964bcdbec9f5137eb5e.tar.xz
* Optimised using statements and namespace references across entire project (this took a while to run).
Diffstat (limited to 'OpenSim/Region/Environment/Modules/VectorRenderModule.cs')
-rw-r--r--OpenSim/Region/Environment/Modules/VectorRenderModule.cs20
1 files changed, 11 insertions, 9 deletions
diff --git a/OpenSim/Region/Environment/Modules/VectorRenderModule.cs b/OpenSim/Region/Environment/Modules/VectorRenderModule.cs
index 9c91b25..0ea6fc3 100644
--- a/OpenSim/Region/Environment/Modules/VectorRenderModule.cs
+++ b/OpenSim/Region/Environment/Modules/VectorRenderModule.cs
@@ -27,15 +27,17 @@
27 27
28using System; 28using System;
29using System.Drawing; 29using System.Drawing;
30using System.Drawing.Imaging;
31using System.Globalization;
30using System.IO; 32using System.IO;
31using System.Net; 33using System.Net;
32using System.Globalization;
33using libsecondlife; 34using libsecondlife;
34using Nini.Config; 35using Nini.Config;
35using OpenJPEGNet; 36using OpenJPEGNet;
36using OpenSim.Framework;
37using OpenSim.Region.Environment.Interfaces; 37using OpenSim.Region.Environment.Interfaces;
38using OpenSim.Region.Environment.Scenes; 38using OpenSim.Region.Environment.Scenes;
39using Image=System.Drawing.Image;
40
39//using Cairo; 41//using Cairo;
40 42
41namespace OpenSim.Region.Environment.Modules 43namespace OpenSim.Region.Environment.Modules
@@ -96,9 +98,9 @@ namespace OpenSim.Region.Environment.Modules
96 if ((size < 128) || (size > 1024)) 98 if ((size < 128) || (size > 1024))
97 size = 256; 99 size = 256;
98 100
99 Bitmap bitmap = new Bitmap(size, size, System.Drawing.Imaging.PixelFormat.Format32bppArgb); 101 Bitmap bitmap = new Bitmap(size, size, PixelFormat.Format32bppArgb);
100 102
101 System.Drawing.Graphics graph = System.Drawing.Graphics.FromImage(bitmap); 103 Graphics graph = Graphics.FromImage(bitmap);
102 104
103 extraParams = extraParams.ToLower(); 105 extraParams = extraParams.ToLower();
104 int alpha = 255; 106 int alpha = 255;
@@ -166,11 +168,11 @@ namespace OpenSim.Region.Environment.Modules
166 } 168 }
167*/ 169*/
168 170
169 private void GDIDraw(string data, System.Drawing.Graphics graph) 171 private void GDIDraw(string data, Graphics graph)
170 { 172 {
171 System.Drawing.Point startPoint = new System.Drawing.Point(0, 0); 173 Point startPoint = new Point(0, 0);
172 System.Drawing.Point endPoint = new System.Drawing.Point(0, 0); 174 Point endPoint = new Point(0, 0);
173 System.Drawing.Pen drawPen = new Pen(System.Drawing.Color.Black, 7); 175 Pen drawPen = new Pen(Color.Black, 7);
174 Font myFont = new Font("Times New Roman", 14); 176 Font myFont = new Font("Times New Roman", 14);
175 SolidBrush myBrush = new SolidBrush(Color.Black); 177 SolidBrush myBrush = new SolidBrush(Color.Black);
176 char[] lineDelimiter = { ';' }; 178 char[] lineDelimiter = { ';' };
@@ -213,7 +215,7 @@ namespace OpenSim.Region.Environment.Modules
213 GetParams(partsDelimiter, ref nextLine, 5, ref x, ref y); 215 GetParams(partsDelimiter, ref nextLine, 5, ref x, ref y);
214 endPoint.X = (int)x; 216 endPoint.X = (int)x;
215 endPoint.Y = (int)y; 217 endPoint.Y = (int)y;
216 System.Drawing.Image image = ImageHttpRequest(nextLine); 218 Image image = ImageHttpRequest(nextLine);
217 graph.DrawImage(image, (float)startPoint.X, (float)startPoint.Y, x, y); 219 graph.DrawImage(image, (float)startPoint.X, (float)startPoint.Y, x, y);
218 startPoint.X += endPoint.X; 220 startPoint.X += endPoint.X;
219 startPoint.Y += endPoint.Y; 221 startPoint.Y += endPoint.Y;