Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7742623
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T09:19:19+00:00 2026-06-01T09:19:19+00:00

Using a scaling transform to negate the y-coordinate alters some conventions in Quartz drawing

  • 0

Using a scaling transform to negate the y-coordinate alters some conventions in Quartz drawing. For example, if you call
CGContextDrawImage to draw an image into the context, the image is
modified by the transform when it is drawn into the destination.
Similarly, path drawing routines accept parameters that specify
whether an arc is drawn in a clockwise or counterclockwise direction
in the default coordinate system. If a coordinate system is modified,
the result is also modified, as if the image were reflected in a
mirror. In Figure 1-5, passing the same parameters into Quartz results
in a clockwise arc in the default coordinate system and a
counterclockwise arc after the y-coordinate is negated by the
transform.

this is from apple quartz2d guide regarding coordinate system.

What do they mean by this first line? Using a scaling transform to negate the y-coordinate alters some conventions in Quartz drawing.

and in second line they have given thecgcontextdrawimage example, yes its true uikit automatically modifies the coordinates from lower left to upper left, so whats the point here?

and also didn’t understand the last point of this, passing the same parameters into Quartz results in a clockwise arc in the default coordinate system and a counterclockwise arc after the y-coordinate is negated by the transform.

Thanks in advance, Regards.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T09:19:21+00:00Added an answer on June 1, 2026 at 9:19 am

    They just draw attention to the fact that using a scaling transform with a negative coordinate, y in the example, creates a mirror effect. It might not be obvoius, but when looking in a mirror, the direction of the axes change. In the example they are talking about the y axys which results in reversing the notion of up and down. If you think carefully to the mirror analogy, or just pick a mirror and try :), you can imagine/see that an arc drawn clockwise will look in the mirror as drawn counter-clockwise.

    Please alos note that this scaling transform just reverses the axes (up-down), it has no effect on the origin (point considered as 0,0 ) at all. This is why for a complete mirror effect you also do a translation, enought to move the origin from upper-left to lower-right corner.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am doing some image scaling using GDI+ (C#), and have noticed a problem
I'm simply trying to crop a JPEG image (no scaling) using PHP. Here is
I'm using the following code to rotate an image http://www.platinumball.net/blog/2010/01/31/iphone-uiimage-rotation-and-scaling/ that's one of the
While scaling a panel using a scale transform the application needs to reset the
Does scaling the image using: image=[UIImage imageWithCGImage:[image CGImage] scale:2.0 orientation:UIImageOrientationUp]; reduces the image quality?
I am using the following to scale image up but it's scaling from it's
I am using a Webview and some css3 to load an image and have
standard scaling using the center of an image as the pivot point and is
Using EC2 instances (along with Amazon Auto Scaling and Elastic Load Balancing) I have
Using Flex 3, I would like to take an image snapshot such as this:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.