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 |
|
koldo
Messages: 3398 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
|
|
|
|
Goto Forum:
Current Time: Fri Nov 01 01:36:10 CET 2024
Total time taken to generate the page: 0.02836 seconds
|