Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Sat Sep 22, 2018 1:25 pm
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: OldRenderer: What happened?
PostPosted: Sat Dec 29, 2012 11:24 am 
Offline

Joined: Mon May 30, 2011 12:56 am
Posts: 702
Im testing Cocoa pretty hard now.
One feature I use extensively is the use of a picture to get me points on a line or circle.

I create a picture in white. Set OldRenderer to true
Then draw a line or an oval or similar in black.
Then examine the results pixel by pixel to see where the line or oval was drawn, and use it like a map.

My current code says
if pixel(x,y).blue = 0 then....

trouble is, in Cocoa, even after I set OldRenderer to TRUE, it is immediately set to false
So graphics operations get fuzzy and unsharp.
So if pixel(x,y).blue = 0 doesn't work any more.

This is a major problem for me: cant I have OldRenderer any longer?
I dont want to draw fuzzy lines.. I need exact pixels to make this work.


Top
 Profile  
Reply with quote  
 Post subject: Re: OldRenderer: What happened?
PostPosted: Sat Dec 29, 2012 11:31 am 
Offline
User avatar

Joined: Sun Aug 05, 2007 10:46 am
Posts: 4931
Location: San Diego, CA
I believe this as been changed to ANTIALIAS and the value is opposite


g.UseOlderRenderer=TRUE
g.AntiAlias=FALSE

_________________
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: OldRenderer: What happened?
PostPosted: Sat Dec 29, 2012 11:39 am 
Offline

Joined: Mon May 30, 2011 12:56 am
Posts: 702
Thank God for Dave.
Works!

But .. le sigh...


Top
 Profile  
Reply with quote  
 Post subject: Re: OldRenderer: What happened?
PostPosted: Sat Dec 29, 2012 11:55 am 
Offline
Real Software Engineer

Joined: Fri Jan 28, 2011 5:24 pm
Posts: 145
OldRenderer just means "use QuickDraw instead of Quartz". It's only supported in Carbon applications and will be removed once Carbon support is dropped.

_________________
Joe Ranieri
Mac Frameworks & Compiler
REAL Software, Inc.


Top
 Profile  
Reply with quote  
 Post subject: Re: OldRenderer: What happened?
PostPosted: Sat Dec 29, 2012 12:06 pm 
Offline

Joined: Mon May 30, 2011 12:56 am
Posts: 702
But AntiAlias is crossplatform, and works under Quartz and GDI+ and Retina, yes?


Top
 Profile  
Reply with quote  
 Post subject: Re: OldRenderer: What happened?
PostPosted: Sat Dec 29, 2012 1:57 pm 
Offline
Site Admin
User avatar

Joined: Tue May 06, 2008 1:07 pm
Posts: 1464
Location: NotEvenOnTheMap, CT
kermit wrote:
Im testing Cocoa pretty hard now.
One feature I use extensively is the use of a picture to get me points on a line or circle.

I create a picture in white. Set OldRenderer to true
Then draw a line or an oval or similar in black.
Then examine the results pixel by pixel to see where the line or oval was drawn, and use it like a map.

My current code says
if pixel(x,y).blue = 0 then....

trouble is, in Cocoa, even after I set OldRenderer to TRUE, it is immediately set to false
So graphics operations get fuzzy and unsharp.
So if pixel(x,y).blue = 0 doesn't work any more.

This is a major problem for me: cant I have OldRenderer any longer?
I dont want to draw fuzzy lines.. I need exact pixels to make this work.

Wouldn't it be faster to use math to find a point on circle?

_________________
Thom McGrath - @tekcor
Web Framework Architect, Real Software, Inc.


Top
 Profile  
Reply with quote  
 Post subject: Re: OldRenderer: What happened?
PostPosted: Sat Dec 29, 2012 5:13 pm 
Offline
Real Software Engineer

Joined: Fri Jan 28, 2011 5:24 pm
Posts: 145
kermit wrote:
But AntiAlias is crossplatform, and works under Quartz and GDI+ and Retina, yes?


Yes. As far as I know, the AntiAlias property works on all platforms.

_________________
Joe Ranieri
Mac Frameworks & Compiler
REAL Software, Inc.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 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:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group