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?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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