RealStudio 2012r2.1, OS X 10.8.3
1. Start a new project
2. Place the below code in the Paint event of the main Window
3. Compile it as Carbon and run. The image will be anti-aliased just fine.
4. Compile it as Cocoa and run. The image will be an unbearable mess.
Has anyone else experienced this or found a fix for this behavior under Cocoa?
EDIT: The current work-around is to pre-composite masked Pictures onto non-masked Pictures. Pictures without modified masks anti-alias just fine.
Thank you.
dim p as Picture
p=new Picture(512,512,32)
p.Graphics.FillRect 0,0,p.Width,p.Height
p.Mask.Graphics.ClearRect 0,0,p.Width,p.Height
p.Mask.Graphics.TextSize=100
p.Mask.Graphics.DrawString "This is an AntiAlias Test",0,p.Mask.Graphics.TextAscent,p.Width
p.Mask.Graphics.DrawRect 0,0,p.Width,p.Height
g.DrawPicture p,0,0,64,64, 0,0,p.Width,p.Height