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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T08:00:53+00:00 2026-06-09T08:00:53+00:00

I am wondering is there any functionality in Core Graphics that will let you

  • 0

I am wondering is there any functionality in Core Graphics that will let you specify an inset for a non rectangular shape ie something comparable to CGRectInset? I’m creating a path that is comprised of a bunch of quadratic bezier curves which make up a special type of elipse, and I’d like to fit in a smaller type of elipse inside of it. Yes, I know I could probably do this manually, but wondering if Apple has an easy way to do it?

  • 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-09T08:00:55+00:00Added an answer on June 9, 2026 at 8:00 am

    CoreGraphics does not specify functions related to shapes other than *rect*angles because it doesn’t have to. Any drawing that you do is the own problem, and therefore, your own solution is required. It would be possible to quasi-copy a CGRectMake()-esque element yourself (it’s just a c struct).

    struct CFIElipseRect {
       CGPoint origin;
       CGSize size;
       CGFloat arcLength;
       CGFloat vertices;
       CGFloat cornerRadius; //optional, just a thought.
    };
    typedef struct CFIElipseRect CFIElipseRect;
    
    
    CFIElipseRect CFIElipseRectMake(CGPoint origin, CGSize size, CGFloat arcLength, CGFloat vertices, CGFloat cornerRadius) {
        CFIElipseRect rect;
        rect.origin = origin;
        rect.size = size;
        rect.arcLength = arcLength;
        rect.vertices = vertices;
        rect.cornerRadius = cornerRadius;
        return rect;
    }
    
    CFIElipseRect CFIElipseRectInset(CFIElipseRect rect, float dx, float dy) {
        rect.size.x -= dx;
        rect.size.y -= dy;
        return rect;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was wondering if there exists any open source frameworks that will help me
i just wondering is there any performance issue or anything thing wrong if that
Wondering if there is any way to get the lambda expressions that result from
I was wondering if there is any sort of functionality in NHibernate to check
I'm wondering if there is any functionality built in to C#/LINQ to simplify the
I am wondering if there is any available field in the .torrent files that
Just wondering is there any way I can check whether the url links to
Been wondering are there any ways to measure the learning performance of ANNs. Thanks
I was wondering - are there any known techniques to control access to a
I am wondering is there any way we can test the font size/color of

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.