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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T12:43:14+00:00 2026-05-23T12:43:14+00:00

i want to crop image via drawing circle using touchMoved event. so how can

  • 0

i want to crop image via drawing circle using touchMoved event.
so how can i find the circle point in CGRect .

i have to just pass that cgrect to cropping function.

Pls Help me for drawing the circle on image and find the CGRect

Thanks

  • 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-23T12:43:14+00:00Added an answer on May 23, 2026 at 12:43 pm

    I’m not sure that I completely understand your question. I will make some assumptions:

    I assume you want to display a circular region of an image, with the image cropped to only display its content within that circle; and

    I assume you will be moving this circle around as the user moves his/her finger.

    I will assume the non-cropped area is a solid color.

    For this case, I would recommend creating a transparent png image file with a circle of transparency, and the solid background color everywhere else. You can put this in a drag-and-drop-able UIView subclass, and when the user moves his/her finger around, it will appear as if the image is being cropped in a circle that moves with their finger.

    Here’s how to make a UIView subclass work with drag-and-drop:

    http://bynomial.com/blog/?p=77

    If you need more sophisticated behavior, such as a non-solid-color background, then you could consider using an image mask with your view’s CALayer property. This would be more work, because you’d have to modify the mask every time the user moved their finger. Another option would be to set the CALayer to have rounded corners (the cornerRadius property), set clipsToBounds=YES, and then move that around appropriately when the user moves their finger.

    Reference for some CALayer properties, to get a sense of the cornerRadius approach (set the cornerRadius = half the width of the view, and it will be a circle):

    http://bynomial.com/blog/?p=52

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

Sidebar

Related Questions

I want to crop an image at the server side (I am using 'JCrop'
I want to have in my GUI capability for scale, rotate and crop images
I want to crop a thumbnail image in my Django application, so that I
I want to crop an image. Is it possible to do like this. And
how can i crop the image with php with its exact to the face
Hi I want to put products to a catalog, How i can crop the
I want to create a Java application bundle for Mac without using Mac. According
So ... I have an image loaded into an NSBitmapImageRep object, so I am
I need to resize and crop an image to a specific width and height.
I developing the simple UIApplication in which i want to crop the UIImage (in

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.