Questions tagged [cgpath]

A graphics path is a mathematical description of a series of shapes or lines. CGPath defines an opaque type that represents an immutable graphics path.The issue related with this tag can be tagged using [tag:CGPath] in iOS

CGPath is available in apple "CoreGraphics" framework.CGPaths are how CoreGraphics describes the bezier paths it uses for drawing to the screen. They can go a long way to unlocking some of the power of CoreGraphics.

For More information:

CGPath related question in SO:

Related Tags:

446 questions
0
votes
2 answers

Auto-expanding a UIView and CGPath to fit Core Text

I've been searching all over stack to an answer for this, although there is a lot on the topic nothing quite seems to answer the question, at least not to me. I have a custom UIView of fixed size in storyboard (in a prototype cell). I subclassed…
Dom Chapman
  • 953
  • 2
  • 10
  • 15
0
votes
2 answers

Why does my NSString becomes CGPath? Xcode, Titanium

So the short of it is I want to define a global string variable that I can reference whenever. The function that I reference it in, it returns a string. As soon as I store it and reference it in another function it outputs as What…
ChrisB
  • 365
  • 2
  • 13
0
votes
1 answer

Place UIImage on percentage of CGPath to create it's starting point

I'm sorry i can't post any code, but StackOverflow login is blocked at my work. So i had to use my phone. I want to create a CGPath and animate a UIImage on that path. More specifically i would like to place it on a predefined path i created but on…
stackr
  • 2,742
  • 27
  • 44
-1
votes
2 answers

Swift Best Way to Save CGMutablePath as JSON

What is the best way to save a CGMutablePath as JSON data that can be uploaded to backend? I'm aware that it could be converted into a Data object using UIBezierPath which conforms to NSCoding, then the data could be converted again to a string and…
Ryan
  • 107
  • 7
  • 30
-1
votes
1 answer

Are there tools for building CGPaths? (either in XCode/Swift or other)

I'd like to make SKSpriteNodes to move along letter outlines. I have many letters but here's one example: I would like the sprite to follow the red line. I know this can be accomplished by creating appropriate CGPaths for each letter but I have…
user594883
  • 1,329
  • 2
  • 17
  • 36
-1
votes
1 answer

CGPath draw a loader

I juste watch this effect : alt text http://grab.by/5UBM I would like to reproduce it. Is it simply a CGPath animation? Have you got some indications so implement this beautiful loader view ? Thanks for your tips ;)
Pierre
  • 10,593
  • 5
  • 50
  • 80
-1
votes
1 answer

using self.physicsBody = [SKPhysicsBody bodyWithEdgeLoopFromPath:

I want to use self.physicsBody = [SKPhysicsBody bodyWithEdgeLoopFromPath:(CGPathRef)]; in spriteKit but I am not sure how to go about it. I have googled how to create paths but couldn't find much Then when I have made a UIBezierPath I can't…
user1114881
  • 731
  • 1
  • 12
  • 25
-1
votes
1 answer

Calculate points for borders inside and outside of a polygon

In my code I get some set of points that define a simple polygon. I need to draw the polygon itself, as well as a border inside and outside of it If it was a rectangle, I could simply use CGRectInset() on iOS. However, it isn't a rectangle. So I…
benjist
  • 2,740
  • 3
  • 31
  • 58
-1
votes
1 answer

Add Opacity to CGPath

CGPathRef defines an opaque type that represents an immutable graphics path. CGMutablePathRef defines an opaque type that represents a mutable graphics path. But how do we change the opacity in the CGPath in CoreGraphics? Can it be addd in…
i_raqz
  • 2,919
  • 10
  • 51
  • 87
-1
votes
1 answer

move animation using cakeyframeanimation

i attempt to create CAKeyframeAnimation in order to move image to achieve half of the curved path can any one help to create it correctly
Abdel Ali
  • 1
  • 1
-5
votes
1 answer

How to draw a different shape with straight lines and curved corners using Bezier paths in iOS

I need to draw a shape with straight line and curves on corners using Bezier paths with CGPoints in an array. The CGPoints mentioned in array indicating corners of the shape. The path should be drawn at dynamically based on CGPoints (co-ordinates)…
1 2 3
29
30