I think i have a vector image format, how do use it to draw an image in php?
I have found an image format that is being used by some applets. but i don't know what it is. I think it is some kind of vector graphics format that is used by the GD library.
could someone help me decode it?
I would like to use the raw data to produce a png, in php
the data is being generated from squiggles drawn by the mouse.
Is there some neato GD library function that I can feed the data into to recreate the image? (looking for a PHP libray function to do the job.) an example of the output from the form is below
array ('signature' => '209 142 209 142 209 142 209 142 209 141 209 143 208 143 208 141 208
141 208 143 206 143 206 141 206 141 206 143 204 143 204 141 204 141 204 143 202 143 202 141
202 141 202 143 200 143 200 141 200 141 200 143 197 143 197 141 197 141 197 143 195 143 195
141 195 141 195 143 194 143 194 141 194 141 194 143 193 143 193 141 192 142 194 142 194 143
192 143 193 142 193 144 192 144 192 142 191 143 193 143 193 144 191 144 191 144 193 144 193
145 191 145 191 145 193 145 193 146 191 146 191 146 193 146 193 147 191 147 191 147 193 147
193 148 191 148 191 148 193 148 193 149 191 149 191 150 193 148 196 151 194 153 195 153 195
151 196 151 196 153 196 153 196 151 197 151 197 153 197 153 197 151 198 151 198 15开发者_如何转开发3 198 153
198 151 199 151 199 153 199 153 199 151 200 151 200 153 200 153....');
//snip// (numbers continue, followed by some colour settings,and a canvas size)
Those look like X-Y coordinates. Just do a MoveTo on the first pair, then LineTo on the subsequent pairs.
精彩评论