Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Fri Dec 13, 2019 10:12 pm
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: UserOldRenderer vs AntiAlias
PostPosted: Sun Jan 13, 2013 1:07 pm 
Offline
User avatar

Joined: Sun Aug 05, 2007 10:46 am
Posts: 4931
Location: San Diego, CA
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....

_________________
Dave Sisemore
iMac I7[2012], OSX Mountain Lion 10.8.3 RB2012r2.1
Note : I am not interested in any solutions that involve custom Plug-ins of any kind


Top
 Profile  
Reply with quote  
 Post subject: Re: UserOldRenderer vs AntiAlias
PostPosted: Fri Mar 08, 2013 12:36 pm 
Offline

Joined: Fri May 30, 2008 2:09 pm
Posts: 4
Location: St. Louis, MO
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

ImageMag=20

newWidth=Canvas1.width/ImageMag
newHeight=Canvas1.height/ImageMag

buffer = New Picture(Canvas1.width,Canvas1.height,32)
buffer.graphics.antialias=false

buffer.graphics.drawpicture Background,0,0,Canvas1.width,Canvas1.height,0,0,newWidth,newHeight
Canvas1.refresh
//------------------------------

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.


Top
 Profile  
Reply with quote  
 Post subject: Re: UserOldRenderer vs AntiAlias
PostPosted: Fri Mar 08, 2013 12:40 pm 
Offline
User avatar

Joined: Sun Aug 05, 2007 10:46 am
Posts: 4931
Location: San Diego, CA
yup that is the exact "incorrect" response I am seeing.

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

_________________
Dave Sisemore
iMac I7[2012], OSX Mountain Lion 10.8.3 RB2012r2.1
Note : I am not interested in any solutions that involve custom Plug-ins of any kind


Top
 Profile  
Reply with quote  
 Post subject: Re: UserOldRenderer vs AntiAlias
PostPosted: Fri Mar 08, 2013 12:49 pm 
Offline

Joined: Fri May 30, 2008 2:09 pm
Posts: 4
Location: St. Louis, MO
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.


Top
 Profile  
Reply with quote  
 Post subject: Re: UserOldRenderer vs AntiAlias
PostPosted: Fri Mar 08, 2013 12:59 pm 
Offline
User avatar

Joined: Sun Aug 05, 2007 10:46 am
Posts: 4931
Location: San Diego, CA
I just compiled the app I mentioned above in 2012v2.1 and USEOLDRENDER still seems to work for me

_________________
Dave Sisemore
iMac I7[2012], OSX Mountain Lion 10.8.3 RB2012r2.1
Note : I am not interested in any solutions that involve custom Plug-ins of any kind


Top
 Profile  
Reply with quote  
 Post subject: Re: UserOldRenderer vs AntiAlias
PostPosted: Fri Mar 08, 2013 2:35 pm 
Offline

Joined: Fri May 30, 2008 2:09 pm
Posts: 4
Location: St. Louis, MO
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.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group