--
You received this message because you are subscribed to the Google Groups "skia-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to skia-discuss...@googlegroups.com.
To post to this group, send email to skia-d...@googlegroups.com.
Visit this group at http://groups.google.com/group/skia-discuss?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to a topic in the Google Groups "skia-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/skia-discuss/-IhQjlULa6k/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to skia-discuss...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to skia-discuss+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/skia-discuss?hl=en [2].
For more options, visit https://groups.google.com/groups/opt_out [3].
To unsubscribe from this topic, visit https://groups.google.com/d/topic/skia-discuss/-IhQjlULa6k/unsubscribe?hl=en [4].
--
You received this message because you are subscribed to a topic in the Google Groups "skia-discuss" group.
To unsubscribe from this group and all its topics, send an email to skia-discuss+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/skia-discuss?hl=en [2].
For more options, visit https://groups.google.com/groups/opt_out [3].
--
You received this message because you are subscribed to the Google Groups "skia-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to skia-discuss+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/skia-discuss?hl=en [2].
For more options, visit https://groups.google.com/groups/opt_out [3].
To unsubscribe from this topic, visit https://groups.google.com/d/topic/skia-discuss/-IhQjlULa6k/unsubscribe?hl=en [4].
--
You received this message because you are subscribed to a topic in the Google Groups "skia-discuss" group.
To unsubscribe from this group and all its topics, send an email to skia-discuss+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/skia-discuss?hl=en [2].
For more options, visit https://groups.google.com/groups/opt_out [3].
--
You received this message because you are subscribed to the Google Groups "skia-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to skia-discuss+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/skia-discuss?hl=en [2].
For more options, visit https://groups.google.com/groups/opt_out [3].
To unsubscribe from this topic, visit https://groups.google.com/d/topic/skia-discuss/-IhQjlULa6k/unsubscribe?hl=en [4].
--
You received this message because you are subscribed to a topic in the Google Groups "skia-discuss" group.
To unsubscribe from this group and all its topics, send an email to skia-discuss+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/skia-discuss?hl=en [2].
For more options, visit https://groups.google.com/groups/opt_out [3].
--
You received this message because you are subscribed to the Google
Groups "skia-discuss" group.
To unsubscribe from this group and stop receiving emails from it,
send an email to skia-discuss+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/skia-discuss?hl=en [2].
For more options, visit https://groups.google.com/groups/opt_out [3].
Links:
------
[1] http://jsfiddle.net/MGndR/
[2] http://groups.google.com/group/skia-discuss?hl=en
[3] https://groups.google.com/groups/opt_out
[4] https://groups.google.com/d/topic/skia-discuss/-IhQjlULa6k/unsubscribe?hl=en
[5] https://github.com/tmpvar/context2d/blob/master/src/context2d.cc#L925-L969
--
You received this message because you are subscribed to a topic in the Google Groups "skia-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/skia-discuss/-IhQjlULa6k/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to skia-discuss+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/skia-discuss?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
To unsubscribe from this group and stop receiving emails from it, send an email to skia-discuss+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/skia-discuss?hl=en [2] [2].
For more options, visit https://groups.google.com/groups/opt_out [3] [3].
To unsubscribe from this topic, visit https://groups.google.com/d/topic/skia-discuss/-IhQjlULa6k/unsubscribe?hl=en [4] [4].
--
You received this message because you are subscribed to a topic in the Google Groups "skia-discuss" group.
To unsubscribe from this group and all its topics, send an email to skia-discuss+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/skia-discuss?hl=en [2] [2].
For more options, visit https://groups.google.com/groups/opt_out [3] [3].
--
You received this message because you are subscribed to the Google Groups "skia-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to skia-discuss+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/skia-discuss?hl=en [2] [2].
For more options, visit https://groups.google.com/groups/opt_out [3] [3].
To unsubscribe from this topic, visit https://groups.google.com/d/topic/skia-discuss/-IhQjlULa6k/unsubscribe?hl=en [4] [4].
--
You received this message because you are subscribed to a topic in the Google Groups "skia-discuss" group.
To unsubscribe from this group and all its topics, send an email to skia-discuss+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/skia-discuss?hl=en [2] [2].
For more options, visit https://groups.google.com/groups/opt_out [3] [3].
--
You received this message because you are subscribed to the Google Groups "skia-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to skia-discuss+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/skia-discuss?hl=en [2] [2].
For more options, visit https://groups.google.com/groups/opt_out [3] [3].
To unsubscribe from this topic, visit https://groups.google.com/d/topic/skia-discuss/-IhQjlULa6k/unsubscribe?hl=en [4] [4].
--
You received this message because you are subscribed to a topic in the Google Groups "skia-discuss" group.
To unsubscribe from this group and all its topics, send an email to skia-discuss+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/skia-discuss?hl=en [2] [2].
For more options, visit https://groups.google.com/groups/opt_out [3] [3].
--
You received this message because you are subscribed to the Google
Groups "skia-discuss" group.
To unsubscribe from this group and stop receiving emails from it,
send an email to skia-discuss+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/skia-discuss?hl=en [2] [2].
For more options, visit https://groups.google.com/groups/opt_out [3] [3].
Links:
------
[1] http://jsfiddle.net/MGndR/ [1]
[2] http://groups.google.com/group/skia-discuss?hl=en [2]
[3] https://groups.google.com/groups/opt_out [3]
[4] https://groups.google.com/d/topic/skia-discuss/-IhQjlULa6k/unsubscribe?hl=en [4]
[5] https://github.com/tmpvar/context2d/blob/master/src/context2d.cc#L925-L969 [5]
--
You received this message because you are subscribed to a topic in the Google Groups "skia-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/skia-discuss/-IhQjlULa6k/unsubscribe?hl=en [4].
To unsubscribe from this group and all its topics, send an email to skia-discuss+unsubscribe@googlegroups.com.
To post to this group, send email to skia-d...@googlegroups.com.
Visit this group at http://groups.google.com/group/skia-discuss?hl=en [2].
For more options, visit https://groups.google.com/groups/opt_out [3].
--
You received this message because you are subscribed to the Google
Groups "skia-discuss" group.
To unsubscribe from this group and stop receiving emails from it,
send an email to skia-discuss+unsubscribe@googlegroups.com.
To post to this group, send email to skia-d...@googlegroups.com.
Visit this group at http://groups.google.com/group/skia-discuss?hl=en [2].
For more options, visit https://groups.google.com/groups/opt_out [3].
Links:
------
[1] http://jsfiddle.net/MGndR/
[2] http://groups.google.com/group/skia-discuss?hl=en
[3] https://groups.google.com/groups/opt_out
[4] https://groups.google.com/d/topic/skia-discuss/-IhQjlULa6k/unsubscribe?hl=en
[5] https://github.com/tmpvar/context2d/blob/master/src/context2d.cc#L925-L969
--
You received this message because you are subscribed to the Google Groups "skia-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to skia-discuss+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/skia-discuss?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
For this particular example, the trick is that rect coordinates use one matrix, while stoke (width and height) use another matrix. You could use SkPaint::getFillPath(...), which turns a stroked path into a filled path. Then this path can be scaled and filled as you wish. So instead of one drawPath, you will have 2 drawPath, the first one does only fill, the second one is a fill using stroke's color and getFillPath return path and a stoke's matrix.
ctx.beginPath();ctx.scale(1.5, .5); // this will scale only the coordinates of the rectanglectx.rect(50, 50, 75, 75);ctx.scale(50, 25); // this will scale only the stroke width and height
ctx.strokeStyle = "green";ctx.stroke();