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 » How must Alpha be managed ??
Re: How must Alpha be managed ?? [message #38533 is a reply to message #38524] Fri, 21 December 2012 21:53 Go to previous messageGo to previous message
omari is currently offline  omari
Messages: 265
Registered: March 2010
Experienced Member
Hi,

to draw a transparent rectangle, you can draw lines:

void DrawRect(Draw&draw, Rect& r, int w = 1, Color c = Black())
{
	Vector<Point> ps;
	ps << r.TopLeft() << r.TopRight() <<
	r.BottomRight() << r.BottomLeft() << r.TopLeft();
	
        draw.DrawPolyline(ps , w, c);
}



to draw a transparent ellipse :

void DrawEllipse(Draw& w, Rect& r, Color c = Black(), int with = 1)
{
	Color nullcolor;
        nullcolor.SetNull();
        w.DrawEllipse(r, nullcolor, with, c);
}




Regards
omari


regards
omari.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Clipping region
Next Topic: Painter and transformations
Goto Forum:
  


Current Time: Sat May 04 01:11:06 CEST 2024

Total time taken to generate the page: 0.03210 seconds