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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T17:10:30+00:00 2026-05-28T17:10:30+00:00

Im working on rendering a graph in app. Working with the data (drawing the

  • 0

Im working on rendering a graph in app. Working with the data (drawing the dots, and lines between dots) is covered, what I am interested in is mapping this data ontop of a graphic.

Firstly, let me show you what I want to do (see below), the solution is that the graph base has a gradient.

I presume the solution is to just take a block image of the gradient, and just cut the edges in code (somehow).

Is there an existing algorithm (Objective-C) that will do this?

Thanks

let me show you what I want to do

  • 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-28T17:10:32+00:00Added an answer on May 28, 2026 at 5:10 pm

    My solution was to map an image to a path with the use of a bezierPath. See the example code below

    UIBezierPath* beizerPath2 = [UIBezierPath bezierPath];
    [beizerPath2 moveToPoint:CGPointMake(0.0, 167)];       //Starting Point
    [beizerPath2 addLineToPoint:CGPointMake(100, 40)];  
    [beizerPath2 addLineToPoint:CGPointMake(200, 70)];    
    [beizerPath2 addLineToPoint:CGPointMake(300, 30)];    
    [beizerPath2 addLineToPoint:CGPointMake(320, 30)];    
    [beizerPath2 addLineToPoint:CGPointMake(320, 167)];     //Finishing Point
    [beizerPath2 closePath];                                //Close Path
    
    
    NSLog(@"Masking Feedstock with Bezier");
    CAShapeLayer *maskLayer = [CAShapeLayer layer];
    maskLayer.path = [beizerPath2 CGPath];
    graphFeedStock.layer.mask = maskLayer;     
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on pdf reader app.i am using gestures for rendering next page
I am working on iPhone app and I have an openGL view rendering on
I have a view that's rendering a PDF into a CATiledLayer. This is working
I'm working on an iPhone app which graphs a large database, accessed through core-data,
Hi ALL I am working on 3D Data rendering and I am not able
I am working on drawing anti-aliased lines in OpenGL-ES on iPhone. I am using
I'm working on a Java 2D rendering program (running on 1.6.0_11), which uses external
I'm working with a Web Application and it's currently rendering in Quirks Mode. My
I'm having major rendering issues in Safari with the web application I'm working on.
Occasionally working in Windows Vista the O.S. will desaturate the screen, rendering all colors

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.