cs.punk Posted May 12, 2010 Share Posted May 12, 2010 What exactly does vector images use as reference? Playing about with Adobe Flash, if you show the grid, change grid block size to 1x1 and create a 1(px?) line it does'nt really 'snap to grid'? Quote Link to comment https://forums.phpfreaks.com/topic/201512-vector-graphics-reference-to-pixels-percentage/ Share on other sites More sharing options...
ignace Posted May 12, 2010 Share Posted May 12, 2010 a vector image doesn't use pixels, it uses (mathematical) vectors you'll notice the difference when you zoom Quote Link to comment https://forums.phpfreaks.com/topic/201512-vector-graphics-reference-to-pixels-percentage/#findComment-1057234 Share on other sites More sharing options...
cs.punk Posted May 12, 2010 Author Share Posted May 12, 2010 Well I get the whole vector thing but in what does it have 'reference' to? What 'dictates' the distance between a line and the border? Quote Link to comment https://forums.phpfreaks.com/topic/201512-vector-graphics-reference-to-pixels-percentage/#findComment-1057236 Share on other sites More sharing options...
cs.punk Posted May 12, 2010 Author Share Posted May 12, 2010 Basically what I would like to know is what it snaps to? Pixels or perhaps a increasing 'mathematical grid'? if you have a vector image and change it to a size of 3x3. Now you draw a line from the top left to middle bottom. // Fictional line (1px, 3, // or line (1px, 10% x 80%, 90 x 50%) With actionscript you would use pixels as reference but why would it enable to draw a line in between 2 pixels in flash? Quote Link to comment https://forums.phpfreaks.com/topic/201512-vector-graphics-reference-to-pixels-percentage/#findComment-1057239 Share on other sites More sharing options...
ignace Posted May 12, 2010 Share Posted May 12, 2010 I don't understand what you mean, try http://en.wikipedia.org/wiki/Vector_graphics Quote Link to comment https://forums.phpfreaks.com/topic/201512-vector-graphics-reference-to-pixels-percentage/#findComment-1057244 Share on other sites More sharing options...
cs.punk Posted May 13, 2010 Author Share Posted May 13, 2010 In what 'reference' is it using to place a line, dot circle or anything on the blank 'canvas'? In what 'format or equations' is it stored? draw a line from *equation1* left and *equation2* from top. to speicified point *equation3* What would equation one look like? 15% from the left, and 10% from top? Here it would be using percentages.. Just curious. Quote Link to comment https://forums.phpfreaks.com/topic/201512-vector-graphics-reference-to-pixels-percentage/#findComment-1057622 Share on other sites More sharing options...
Daniel0 Posted May 13, 2010 Share Posted May 13, 2010 I'm not sure how you would choose to actually implement it, but a line in [imath]\mathbb{R}^2[/imath] from (1,1) to (4, would be represented by the following set of points: [math]M = \left\{\left(x,\frac{7}{3}x+1\right)|1\leq x \leq 4\right\}[/math] This set is infinite of course, so when actually drawing the line you would select a discrete amount of points and paint the pixel that is nearest a particular point. For a curve you could use a Bézier curve. Quote Link to comment https://forums.phpfreaks.com/topic/201512-vector-graphics-reference-to-pixels-percentage/#findComment-1057633 Share on other sites More sharing options...
cs.punk Posted May 17, 2010 Author Share Posted May 17, 2010 I'm not sure how you would choose to actually implement it, but a line in [imath]\mathbb{R}^2[/imath] from (1,1) to (4, would be represented by the following set of points: [math]M = \left\{\left(x,\frac{7}{3}x+1\right)|1\leq x \leq 4\right\}[/math] This set is infinite of course, so when actually drawing the line you would select a discrete amount of points and paint the pixel that is nearest a particular point. For a curve you could use a Bézier curve. Pretty much what I was looking for, thanks! Now if only I could understand it. :-\ Quote Link to comment https://forums.phpfreaks.com/topic/201512-vector-graphics-reference-to-pixels-percentage/#findComment-1059563 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.