VG_QUAD_TO expects only 2 coordinates not 3. The first coordinate is given by the current position. The start position on a new path is always (0,0) so you were actually drawing a quad with the 3 points: (0,0),(100,100), and (150,200) instead of the one you were expecting. Thus you should add a VG_MOVE_TO_ABS to your command stream by:
Thanks for the reply …
It worked…
And I have doubts yet…
1:We need three control points to draw a quad curve…
a starting point,an ending point and an internal control point
But QUAD_TO expects only 2 points …
Actually what are these two points…
Are they internal control point and ending point …
2:If so,when I use the following code to draw my quadratic curve at origin only,
I dont see anything…
If you are using AmanithVG, there was an already known bug related to paths made of a single command without an initial move_to.
The next public release will contain the patch.