aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Modules/VectorRenderModule.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Environment/Modules/VectorRenderModule.cs73
1 files changed, 37 insertions, 36 deletions
diff --git a/OpenSim/Region/Environment/Modules/VectorRenderModule.cs b/OpenSim/Region/Environment/Modules/VectorRenderModule.cs
index 8bb903f..c0a00c9 100644
--- a/OpenSim/Region/Environment/Modules/VectorRenderModule.cs
+++ b/OpenSim/Region/Environment/Modules/VectorRenderModule.cs
@@ -126,41 +126,43 @@ namespace OpenSim.Region.Environment.Modules
126 126
127 } 127 }
128 128
129 /* private void CairoDraw(string data, System.Drawing.Graphics graph) 129/*
130 { 130 private void CairoDraw(string data, System.Drawing.Graphics graph)
131 using (Win32Surface draw = new Win32Surface(graph.GetHdc())) 131 {
132 { 132 using (Win32Surface draw = new Win32Surface(graph.GetHdc()))
133 Context contex = new Context(draw); 133 {
134 134 Context contex = new Context(draw);
135 contex.Antialias = Antialias.None; //fastest method but low quality 135
136 contex.LineWidth = 7; 136 contex.Antialias = Antialias.None; //fastest method but low quality
137 char[] lineDelimiter = { ';' }; 137 contex.LineWidth = 7;
138 char[] partsDelimiter = { ',' }; 138 char[] lineDelimiter = { ';' };
139 string[] lines = data.Split(lineDelimiter); 139 char[] partsDelimiter = { ',' };
140 140 string[] lines = data.Split(lineDelimiter);
141 foreach (string line in lines) 141
142 { 142 foreach (string line in lines)
143 string nextLine = line.Trim(); 143 {
144 144 string nextLine = line.Trim();
145 if (nextLine.StartsWith("MoveTO")) 145
146 { 146 if (nextLine.StartsWith("MoveTO"))
147 float x = 0; 147 {
148 float y = 0; 148 float x = 0;
149 GetParams(partsDelimiter, ref nextLine, ref x, ref y); 149 float y = 0;
150 contex.MoveTo(x, y); 150 GetParams(partsDelimiter, ref nextLine, ref x, ref y);
151 } 151 contex.MoveTo(x, y);
152 else if (nextLine.StartsWith("LineTo")) 152 }
153 { 153 else if (nextLine.StartsWith("LineTo"))
154 float x = 0; 154 {
155 float y = 0; 155 float x = 0;
156 GetParams(partsDelimiter, ref nextLine, ref x, ref y); 156 float y = 0;
157 contex.LineTo(x, y); 157 GetParams(partsDelimiter, ref nextLine, ref x, ref y);
158 contex.Stroke(); 158 contex.LineTo(x, y);
159 } 159 contex.Stroke();
160 } 160 }
161 } 161 }
162 graph.ReleaseHdc(); 162 }
163 }*/ 163 graph.ReleaseHdc();
164 }
165*/
164 166
165 private void GDIDraw(string data, System.Drawing.Graphics graph) 167 private void GDIDraw(string data, System.Drawing.Graphics graph)
166 { 168 {
@@ -172,7 +174,6 @@ namespace OpenSim.Region.Environment.Modules
172 char[] lineDelimiter = { ';' }; 174 char[] lineDelimiter = { ';' };
173 char[] partsDelimiter = { ',' }; 175 char[] partsDelimiter = { ',' };
174 string[] lines = data.Split(lineDelimiter); 176 string[] lines = data.Split(lineDelimiter);
175
176 177
177 foreach (string line in lines) 178 foreach (string line in lines)
178 { 179 {