Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Rotating the Display
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Rotating the Display



Hi Niyaz,

Actually, Quartz provides several simple ways to implement the functionality you seek.

All drawing in Quartz is affected by the currently active transformation matrix - therefore you can apply any desired rotational transformation to this matrix and that will apply the designated rotation to all further output, without any further effort on your part.

An even simpler way is provided that does not require insight into linear algebra: just use the provided API:
CGContextRotateCTM(CGContextRef context, float angle);


where context is the one you are drawing to, and angle is the amount you want it rotated - either 90 or 270 degrees in your case - though it should be expressed in radians.

Gerrit V

On Apr 6, 2005, at 12:10 AM, Niyaz wrote:

Can someone help me find documents / procedure for rotating
the display by 90 degrees , 180 degrees ?
I am rotating the monitor and I need the whole screen/display also to
be rotated correspondingly( say from landscape to potrait ).
Thanks in advance  

_______________________________________________ Do not post admin requests to the list. They will be ignored. Quartz-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: 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 © 2011 Apple Inc. All rights reserved.