diff options
author | Adam Frisby | 2008-04-21 07:09:17 +0000 |
---|---|---|
committer | Adam Frisby | 2008-04-21 07:09:17 +0000 |
commit | fef3b3689492dea63693c964bcdbec9f5137eb5e (patch) | |
tree | 7791eef001d85d3e1de863a68f26ff9434d062ca /OpenSim/Region/Environment/Modules/VectorRenderModule.cs | |
parent | * Terrain Module code has been reformatted to comply with guidelines. (diff) | |
download | opensim-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.cs | 20 |
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 | ||
28 | using System; | 28 | using System; |
29 | using System.Drawing; | 29 | using System.Drawing; |
30 | using System.Drawing.Imaging; | ||
31 | using System.Globalization; | ||
30 | using System.IO; | 32 | using System.IO; |
31 | using System.Net; | 33 | using System.Net; |
32 | using System.Globalization; | ||
33 | using libsecondlife; | 34 | using libsecondlife; |
34 | using Nini.Config; | 35 | using Nini.Config; |
35 | using OpenJPEGNet; | 36 | using OpenJPEGNet; |
36 | using OpenSim.Framework; | ||
37 | using OpenSim.Region.Environment.Interfaces; | 37 | using OpenSim.Region.Environment.Interfaces; |
38 | using OpenSim.Region.Environment.Scenes; | 38 | using OpenSim.Region.Environment.Scenes; |
39 | using Image=System.Drawing.Image; | ||
40 | |||
39 | //using Cairo; | 41 | //using Cairo; |
40 | 42 | ||
41 | namespace OpenSim.Region.Environment.Modules | 43 | namespace 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; |