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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T14:25:32+00:00 2026-05-13T14:25:32+00:00

I want to do something similar to Photoshops inner shadow effect in Core Graphics.

  • 0

I want to do something similar to Photoshops inner shadow effect in Core Graphics. If I draw/fill a path with this effect, I want get something similar to the following: alt text

  • 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-13T14:25:32+00:00Added an answer on May 13, 2026 at 2:25 pm

    Here are the layers you need to create to make this image, from back to front:

    The base color, in this case a white background.

    The shadow.

    The shape casting the shadow. This is made by finding the bounding box of the inner shape, expanding that box by more than the width of the shadow, then cutting a hole in the box with the inner shape.

    Clipping these with the inner shape.

    Then finally drawing the surrounding colored shape, in this case a rectangle with the inner shape cut out.

    Note: Depending upon the expected look, the shape casting the shadow may or may not be the same shape filling the foreground color. A thin section between the inner shape and the outer shape would cast a reduced shadow. If that effect is not desired, a larger outer shape would be required to get the consistent inner shadow. Also, the explicit clipping of the shadow is required in case the shadow extends beyond the outer shape.

    To draw a shape with a hole in the middle, like this example shape, you’ll want to draw a path with two subpaths. One subpath would be the outer box, and the other would be the inner irregular shape. If you’re using the default nonzero winding number rule, you’ll want to specify the points for the outer box in the opposite direction than the inner irregular shape. For example, specifying the outer box’s points in clockwise order would require specifying the inner shape’s points in counter-clockwise order. Refer to the Quartz 2D Programmer’s Guide’s section on Paths for more details.

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

Sidebar

Related Questions

I want to be able to get something similar to this.. I want to
I want to know i can do something similar to this (not working) code
In ASCII Art, I want something similar to the following: My Section ------------------------------ It's
I want something similar to the following pseudocode: myGridView.SelectedIndex = myGridView.DataKeys.IndexOf(mySpecificKey); I've done some
I want to do something similar to this using cmd in windows: start dir
I want to accomplish something similar to what photoshop.com has and this site here:
I want something similar to this post but with Visual Studio. This would be
I want to make something similar to this , but I'd like to avoid
I want to do something similar to this post but using MultipleBindings. So something
I want to do something similar to summing 1/x from 1 to 100 without

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.