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 8677677
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T20:31:26+00:00 2026-06-12T20:31:26+00:00

Can anyone give me some idea on how to solve this problem for use

  • 0

Can anyone give me some idea on how to solve this problem for use on an iPhone app. Users can rotate and flip image thumbnails but I want to save these transformations so I can apply them to the full size image later. I want to be able to work out the simplest transformation from a string off all transformations applied. I’ve include some examples below.

flipH+flipV = r180

flipH+flipV+flipH = flipV

flipV+flipH+flipV = flipH

r90CW+flipH+flipV+flipH+r180CCW = flipH+r90CCW

  • 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-12T20:31:27+00:00Added an answer on June 12, 2026 at 8:31 pm

    I understand you are worried by the cost of applying each transformation in a sequence to your image; as opposed to this, you would like to store a composed transformation and apply it just once.

    If this is correct, then you can use the methods that are listed under the “Modifying Affine Transformations ” section in CGAffineTransform Reference. I.e., you would start with a basic identity transform:

     CGAffineTransform transform = CGAffineTransformIdentity;
    

    then you would apply all of your transform in sequence and build a composed transform:

    transform = CGAffineTransformRotate(transform, rotation);
    transform = CGAffineTransformTranslate(transform, dx, dy);
    ...
    

    that you can apply to your image.

    EDIT:

    Composing 2 transformations means multiplying 2 matrices. If you just compose rotations, you will get a rotation matrix with different values (0s are kept in the same locations); if you compose translation and rotation, then you will get a new matrix with 2 more values (as compared to a rotation matrix). Have a look at this explanation, which is very visual.

    Affine transforms are entirely ok for any iOS version (they are really a basic thing), including iOS 5.

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

Sidebar

Related Questions

Can anyone give me some idea about uploading data from excel to access database
Can anyone give me a cross-browser supported solution for this problem?
if anyone can give me some idea to begin with...at the end there. i
Can anyone give me some idea abt how to page a HTML page? The
can anyone give me some tips or hook me up with some good links
I can't understand what the below ruby code does. Can anyone give me some
Can anyone give me the example code that I can use to first present
Can anyone give an idea of how should I implement undo/redo of cutting/copying/pasting of
Can anyone give me some basic directions to keep me going? My general requirements
Can anyone give me an example of these attributes in action: stroke-dasharray, stroke-linecap, stroke-linejoin

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.