GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Tue Dec 23, 2014 5:09 am

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: [GDK] how to draw rectangle with rounded corners
PostPosted: Thu Nov 17, 2011 11:41 am 
Offline
Familiar Face

Joined: Mon Oct 31, 2011 11:10 am
Posts: 8
how can i draw and fill this?

it should look like this:
http://www.jigar.net/howdoi/viewhtmlcontent139.aspx

i don't want to use cairo, because, cairo has antialising and is drawing vector-graphics


Top
 Profile  
 
 Post subject: Re: [GDK] how to draw rectangle with rounded corners
PostPosted: Thu Nov 17, 2011 6:01 pm 
Offline

Joined: Thu Nov 17, 2011 5:36 pm
Posts: 4
Hi,
check out this site
http://cairographics.org/tutorial/
You can draw four lines and some arcs or curves or whatever to get the same result.

HeReSY


Top
 Profile  
 
 Post subject: Re: [GDK] how to draw rectangle with rounded corners
PostPosted: Thu Nov 17, 2011 6:39 pm 
Offline
Familiar Face

Joined: Mon Oct 31, 2011 11:10 am
Posts: 8
The main-Problem is the filling...and currently i dont want to use cairo, since i got not all drawing function working with my current unit.

i have many problems porting my unit to cairo...


Attachments:
circuitboard.zip [4.14 KiB]
Downloaded 26 times
Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: cat22 and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group