Jump to content

Vector Graphic's reference to? pixels? Percentage?


cs.punk

Recommended Posts

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?

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..

 

:shrug: Just curious.  ::)

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,8) 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.

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,8) 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. :-\

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.