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: 917
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: 13975
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: 13975
Registered: November 2005
Ultimate Member
Fixed.

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


Current Time: Thu Mar 28 17:53:14 CET 2024

Total time taken to generate the page: 0.00830 seconds