2014年9月25日 星期四

Firemonkey how to enable anti-aliasing

In Rad Studio XE2~XE7 canvas anti-aliasing seems to disable by default, while use controls have special shapes will case shape control has its border toothed like this one:



Set form property like Form1.Quality:= HighQuality can turn on anti-aliasing , the result UI will like this:



In some situation , this may now work properly , we need to add more code on Form Event : 

onCreate :


preocdure TForm1.onCreate(Sendor: TObject);

begin
Form1.RecreateCanvas;
Form1.Invalidate;
end; 


沒有留言:

張貼留言