Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Old QuickDraw calls and Quartz 2D



If you want to do it the corny way, you could do your QuickDraw drawing into a GWorld, then you could probably convince CG to display the GWorld somehow. I'm not super-CG-savvy but it seems like there will certainly be a way to blit an RGB image :)


On Jan 30, 2007, at 5:07 PM, Scott Mitchell wrote:

Unfortunately I guess so. Hopefully my boss will understand.

Any body hiring a Cocoa developer??? :(((

Thanks,
Scott Mitchell

On Jan 30, 2007, at 2:11 PM, Steve Mills wrote:

On Jan 30, 2007, at 14:59:03, James Mitchell wrote:

This may be a stupid question, but cab the old QuickDraw calls like MoveTo, MacLineTo, PenSize, etc. be used in a CGContextRef? If so how? I took some example code from Apple that shows how to use Quartz (Core Graphics) ad added some code to draw draw a couple of lines, but could not get anythign to display. I know I shoudl be using the the CG calls, and I plan to, but I have some older code that I need to get workign RIGHT away, and then I will modify it over time to use the CG calls.

I'm sure it will be much faster to get the code working to use Quartz now instead of trying to make a QD hack work. It's not that hard at all:

CGContextBeginPath(context);
CGContextMoveToPoint(context, p1.x, p1.y);
CGContextAddLineToPoint(context, p2.x, p2.y);
CGContextStrokePath(context);

_________________________________________________________
Steve Mills                              Me: 952-401-6255
Senior Software Architect                         MultiAd
email@hidden                       www.multi-ad.com


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden



Scott Mitchell
home:970-568-9410
cell:970-227-7386



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden

References: 
 >Old QuickDraw calls and Quartz 2D (From: James Mitchell <email@hidden>)
 >Re: Old QuickDraw calls and Quartz 2D (From: "Steve Mills" <email@hidden>)
 >Re: Old QuickDraw calls and Quartz 2D (From: Scott Mitchell <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.