I just update MSEgui from git, and I found new feature, smooth canvas, and
I try with simple code to draw arc.

I add 2 tpaintbox and I add this code :

procedure tmainfo.onsmoothpaint(const sender: twidget; const acanvas:
tcanvas);
var
 arect : rectty;
begin
 acanvas.smooth:= true;
 arect.x := 200;
 arect.y := 200;
 arect.cx := 200;
 arect.cy := 200;
 acanvas.linewidth:= 8;
 acanvas.fillarcpieslice(arect,0,0.5*pi,cl_red,cl_blue);
end;

procedure tmainfo.onnonsmoothpaint(const sender: twidget; const acanvas:
tcanvas);
var
 arect : rectty;
begin
 acanvas.smooth:= false;
 arect.x := 200;
 arect.y := 200;
 arect.cx := 200;
 arect.cy := 200;
 acanvas.linewidth:= 8;
 acanvas.fillarcpieslice(arect,0,0.5*pi,cl_red,cl_blue);
end;

And the result on smooth mode is broken as I attached.

Thanks

<<attachment: smooth-bug.png>>

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
mseide-msegui-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk

Reply via email to