Real Software Forums

UserOldRenderer vs AntiAlias
Page 1 of 1

Author:  DaveS [ Sun Jan 13, 2013 1:07 pm ]
Post subject:  UserOldRenderer vs AntiAlias

I was under the impression that functionally UserOldRenderer (deprecated) as the "opposite" of the new AntiAlias

Ie.... g.UseOldRenderer=TRUE was the same as g.AntiAlias=FALSE

but this does NOT seem to actually be the case.

I have an older Graphics program that I was going to upgrade to the latest version of RealStudio.... and changed all the USEOLDRENDERER to ANTIALIAS.... flipping the boolean logic at the same time.

And noticed TWO things.
One.. it seemed to have NO effect on drawing lines (where UseOldRenderer did)
and worse.... if I took an image at displayed it at 8 to 10x normal (ie. zoom in)... with UseOldRenderer the pixels got bigger, crisp, clean and what I expected and what I wanted... but using code with ANTIALIAS.... the pixels magnified very FUZZY

Am I missing something in regards to swapping USEOLDRENDERER for ANTIALIAS?

I know it has to doing with using QUARTZ or not.... but I can't have a zoom in turn all fuzzy....

Author:  punchcard [ Fri Mar 08, 2013 12:36 pm ]
Post subject:  Re: UserOldRenderer vs AntiAlias

When antialiasing was first introduced, I don't remember seeing that behavior. If I remember correctly, graphics.antialias functionally replaced the depreciated graphics.useoldrenderer.

However, that is definitely not the case in RealStudio 2012. Graphics.antialias does not function as one would expect.

I have tracked down the problem to the graphics.drawpicture method. Apparently if you scale a picture RealStudio automatically uses antialiasing regardless of your antialiasing setting for that picture object. I would consider that a bug in the compiler since it defeats the purpose of the antialiasing setting (the ability to turn on or off antialiasing).

Below is test code that demonstrates the behavior.

Dim newWidth, newHeight as integer
Dim ImageMag as double
//Background is a picture object
//Canvas1 is a canvas object



buffer = New Picture(Canvas1.width,Canvas1.height,32) Background,0,0,Canvas1.width,Canvas1.height,0,0,newWidth,newHeight

I have tried to report this apparent bug using the RealSoftware Feedback application, but for some reason I keep getting errors when I try to log on with the Feedback application: "Software Update Failed: Feedback must download a software update, but could not find the update online. Please try again later." I have downloaded and used the most recent Feedback application on the RealSoftware web site and tried multiple times.

Author:  DaveS [ Fri Mar 08, 2013 12:40 pm ]
Post subject:  Re: UserOldRenderer vs AntiAlias

yup that is the exact "incorrect" response I am seeing.

so for now I am continuing to use USEOLDRENDER (deprecated but still operational)

Author:  punchcard [ Fri Mar 08, 2013 12:49 pm ]
Post subject:  Re: UserOldRenderer vs AntiAlias

graphics.useoldrender no longer works in RealStudio 2012 R.2.1 so I am out of luck until RealSoftware fixes the bug.

My application performs scientific image analysis and it is a real problem if the Software alters the pixels with antialiasing.

Author:  DaveS [ Fri Mar 08, 2013 12:59 pm ]
Post subject:  Re: UserOldRenderer vs AntiAlias

I just compiled the app I mentioned above in 2012v2.1 and USEOLDRENDER still seems to work for me

Author:  punchcard [ Fri Mar 08, 2013 2:35 pm ]
Post subject:  Re: UserOldRenderer vs AntiAlias

I tried again and was able to get 2012 R2.1 to accept graphics.useoldrenderer, and my code works correctly as before, for now. Thanks.

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group