Mailing Lists: Apple Mailing Lists

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

Finding the four corner points of a rotated layer



I'm interested in placing a single pixel border around a rotated layer.
I know I could do this by setting a border and borderWidth - but when the entire thing is scaled; these borders are also scaled (not ideal)


I can't think of any other way of doing it other than having another layer sitting on top of the rotated layer, being exactly the right size as the rotated layer and with the same rotation (thus it should appear to be the same size position etc). With a scale of 1, it'll draw it's border correctly.

Is there a more sensible way to do this in CoreAnim that anyone knows of?

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

This email sent to 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.