Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » Draw, Display, Images, Bitmaps, Icons » Drawing rectangles question
Drawing rectangles question [message #20245] Wed, 04 March 2009 21:34 Go to next message
Mindtraveller is currently offline  Mindtraveller
Messages: 916
Registered: August 2007
Location: Russia, Moscow rgn.
Experienced Contributor

What is the simplest way for ...
1. ...drawing rounded rectangle?
"4 lines + 4 arcs" looks like rather bad solution...
At least it should be inside library.

2. ...drawing rectangle filled with some other color (for example, black border with SColorFace inside).
There must be something more optimal than drawing two rectangles one inside another.

[Updated on: Wed, 04 March 2009 21:47]

Report message to a moderator

Re: Drawing rectangles question [message #20249 is a reply to message #20245] Thu, 05 March 2009 09:55 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 12122
Registered: November 2005
Ultimate Member
Mindtraveller wrote on Wed, 04 March 2009 15:34


2. ...drawing rectangle filled with some other color (for example, black border with SColorFace inside).
There must be something more optimal than drawing two rectangles one inside another.


Optimal is to draw 5 rectangles.... Smile

Mirek
Re: Drawing rectangles question [message #20474 is a reply to message #20249] Fri, 20 March 2009 11:24 Go to previous message
mirek is currently offline  mirek
Messages: 12122
Registered: November 2005
Ultimate Member
Fixed.

Mirek
Previous Topic: RGBA ctor
Next Topic: Optimal ctrl refresh
Goto Forum:
  


Current Time: Tue Dec 10 01:34:57 CET 2019

Total time taken to generate the page: 0.01542 seconds