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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T12:25:24+00:00 2026-05-22T12:25:24+00:00

Thanks in advance. I know crop an image using CGRect value and masking .But

  • 0

Thanks in advance.

I know crop an image using CGRect value and masking .But now i want to create an app in that i will draw some shape using touches and drawRect method on a imageview and now i want to get only the part of an image within that shape only means i want to crop the original image into that shape. Is it possible to do.Do anyone have an idea about this.

  • 1 1 Answer
  • 1 View
  • 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-22T12:25:24+00:00Added an answer on May 22, 2026 at 12:25 pm

    1- Calculate the rectangular bounds of the shape.

    2- Extract a cropped sub-image of that size (or a couple of pixels over, depending on the app’s intent).

    Then you have some choices:

    a- You can change every pixel outside of the shape to white (or white, or blue, or whatever)
    b- You can set every pixel outside of the shape to transparent

    3- Save it.

    If you are really industrious you can even apply some dithering to the edge to smooth it out.

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

Sidebar

Related Questions

i want to know how to get search like google search... thanks and advance
Thanks in advance. I want to get the pinch effect to an image means
Thanks in advance. I did look at the other questions/answers that were similar and
Sorry in advance if I'm not explaining this correctly. I want to know if
I want to know how to shuffle the images.If i drag an image into
First of all thanks in advance.. I want to disable view page source ,
Hi just want to know how to add a transient dialog saying that action
Thanks in advance. I have entered the info in itunesconnect and get the app
Thanks in advance . I have an ipod 3.1.3. If i want to develope
First of all I want to say thanks in advance for helping me. I

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.