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: CG migration from QD



There are a number of ways to do this. One is demonstrated in the Carbon Sketch sample where you basically create a one point square, draw each polygon into the context, and detect whether or not the polygon colors the context at that point.

Sorry, I flubbed this one.

You create a bitmap context that is one point square. You set up the transform in that context so that it covers the point where the mouse went down. You then draw the polygons into that context and detect whether or not the pixel of that context changes color.

_______________________________________________
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: 
 >CG migration from QD (From: "Edwards, Waverly" <email@hidden>)
 >Re: CG migration from QD (From: Scott Thompson <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.