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 » U++ Library : Other (not classified elsewhere) » Painter DrawLineStroke proposal
Re: Painter DrawLineStroke proposal [message #23908 is a reply to message #23906] Fri, 04 December 2009 09:37 Go to previous messageGo to previous message
koldo is currently offline  koldo
Messages: 3437
Registered: August 2008
Senior Veteran
Hello Mirek

So do I have to do this?:

void MyClass::Paint(Draw& drw) 
{
	Size sz = GetSize();
	ImageBuffer ib(sz);
	BufferPainter w(ib);	
	w.Clear(RGBAZero());

	w.LineCap(LINECAP_BUTT);		
	
	if (MY_ACTUAL_IMPLEMENTATION) 
		w.DrawLine(0, 0, 20, 20, 5, Black());	// w.LineCap(LINECAP_BUTT) does nothing
	else {			// Proposed implementation
		w.Move(0, 0);
		w.Line(20, 20);
		w.Stroke(5, Black());
	}
	
	drw.DrawImage(0, 0, ib);
}


I mean I cannot use DrawLine() and instead I have to use Move().Line.Stroke().

Best regards
Koldo


Best regards
IƱaki
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Util.cpp static sIniFile BUG FIX
Next Topic: Polymorphic XML
Goto Forum:
  


Current Time: Mon Jul 14 01:34:20 CEST 2025

Total time taken to generate the page: 0.03505 seconds