Solving the special case one : When border width equal

In case when border width of sides are equal : The stroke width doesnt vary and hence cairo Just creating a path along the sides can be used to generate the dashed pattern.

Sample generated using cairo in python . Code attached : http://pastebin.com/ygUjFy4f

The logic to generate the bezier points needed to generate the curve along corner exists in     gfxContext::RoundedRectangle .

Advertisements

About anil

science is my passion so im here for it
This entry was posted in Uncategorized and tagged , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s