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

  • Home
  • SEARCH
  • 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 515019
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T07:35:06+00:00 2026-05-13T07:35:06+00:00

Currently I’m developing a game in which I’ve an imageView which I’m scaling little

  • 0

Currently I’m developing a game in which I’ve an imageView which I’m scaling little by little & rotating at the end. I want to obtain the size of image & its coordinates ar the end of scaling which I need for 3D rotating the imageView which I need to redraw the image & apply rotation to it.
I’m using

if(ravanImage.center.y>=300&&ravanImage.center.y<=370)
{
    ravanImage.transform = CGAffineTransformScale(ravanImage.transform, 0.98, 0.98);    
}

if(ravanImage.center.y>=230&&ravanImage.center.y<=299)
{
    ravanImage.transform = CGAffineTransformScale(ravanImage.transform, 0.98, 0.98);
}

if(ravanImage.center.y>=150&&ravanImage.center.y<=229)
{
    ravanImage.transform = CGAffineTransformScale(ravanImage.transform, 0.98, 0.98);
}

for scaling image during three intervals of coordinates. Each time it enters if loop, it reduces in size. This animation basically is for an arrow which I want to show as moving away from us inside the screen. I want to obtain the last statistics of the image after last scale.

Can anybody please help me?

  • 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-05-13T07:35:06+00:00Added an answer on May 13, 2026 at 7:35 am

    You can do this by extracting the final transform and applying that transform to your original view values:

    CGPoint ravanImageOrigin = ravanImage.frame.origin;
    CGSize ravanImageSize = ravanImage.bounds.size;
    
    // Transforming code here
    
    CGAffineTransform currentTransform = ravanImage.transform;
    CGPoint newImageOrigin = CGPointApplyAffineTransform(ravanImageOrigin, currentTransform);
    CGSize newImageSize = CGSizeApplyAffineTransform(ravanImageSize, currentTransform);
    

    One thing to watch out for here is in dealing with the position. Transforms for a view are applied about its center point, by default, so the above may not give you the correct ending coordinate for the origin of the view. You may need to subtract values so that the origin is in coordinates relative to the center of the view, then add the center view coordinate back after you’ve applied the transform.

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

Sidebar

Ask A Question

Stats

  • Questions 254k
  • Answers 254k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer You can put your changes in the - (void) setEditing:(BOOL)editing… May 13, 2026 at 10:10 am
  • Editorial Team
    Editorial Team added an answer Now i am implementing in my project The Constant Contact… May 13, 2026 at 10:10 am
  • Editorial Team
    Editorial Team added an answer Perhaps the startupFocus config option? CKEDITOR.replace( 'meeting_notes', { startupFocus :… May 13, 2026 at 10:10 am

Related Questions

I want use html5's new tag to play a wav file (currently only supported
I am currently running into a problem where an element is coming back from
I have a JSP page retrieving data and when single or double quotes are
Currently I'm doing some unit tests which are executed from bash. Unit tests are
Currently I know of only two ways to cache data (I use PHP but

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.