cgpath
How do I write a PDF file from NSData source
I have a method that returns NSData from a CGPathRef like so ... + (NSData *) createPDFDataWithCGPath: (CGPathRef) path mediaBox: (CGRect) mediaBox[详细]
2023-04-09 17:10 分类:问答Confused about UIBezierPath + applyTransform + CGPath
I scale UIBezierPath (built of one [0,0 - 1x1] rect) by factor 2 in both x and y directions. UIBezierPath \".bounds\" is alright (i.e. scaled as expected), while \".CGPath\" remains unchanged...[详细]
2023-04-08 10:49 分类:问答Polygon reduction while drawing on Map
Today we are drawing polygons on a MKMapView. We use the following pseudocode to draw polygons. CGContextMoveToPoint[详细]
2023-04-02 15:12 分类:问答Finding the center of a CGPath
I have an arbitrary CGPath and I\'d like to find it\'s geographic center. I can get the path bounding box with CGPathGetPathBoundingBox and then find the center of that box. But is there a better way[详细]
2023-03-30 08:28 分类:问答Applying alpha outside intersection of 2 CGPath objects
I have a CGPathRef for an oddly shaped polygon. I need to apply an alpha to the area outside of this path. This is pretty straightforward.[详细]
2023-03-27 18:24 分类:问答Multiple Dynamically drawn Polygon Dragging
I want to put several dynamically drawn polygon in a UIView and make each 开发者_开发百科of such polygon draggable. Should I put each dynamically drawn polygon in a subview and add that to a UIView (W[详细]
2023-03-25 19:20 分类:问答CGPath occupying more memory
This is a very much daunting challenge I have ever faced. Im drawing lines when the finger is moved. The lines are created such that they bypass the imageviewspresnt in my drawingview. I`m using below[详细]
2023-03-16 15:19 分类:问答get info about a CGpath, UIBezierPath?
I have a series of paths, mostly straight lines, or almost straight lines. I\'d like to categorize them as horizontal, vertical, diagonal, and also the direction in which they are drawn (up->down, dow[详细]
2023-03-16 05:44 分类:问答How to move an UIView along a curved CGPath according to user dragging the view
I\'m trying to build a interface that the user can move his finger around the screen an a list of images moves along a path. The idea is that the images center nevers leaves de path.[详细]
2023-03-13 16:54 分类:问答how to get notify when image is animating over defined path
I have a image which is animating all over screen randomly using image layer addAnimation. I have added a开发者_C百科round 15 points using CGPathAddLineToPoint.[详细]
2023-03-08 00:51 分类:问答