quartz-2d
Issue with drawing with Quartz 2d / CGContext and zooming
Right now we have a UIScrollView that has one subview, a UIView.This UIView holds two UIImageView subviews, one is a static background image.The second UIImageView is a view for users to draw on, whic[详细]
2023-03-23 05:59 分类:问答iOS drawing with CGContextStrokePath() lagging/crashing when drawing while zoomed in
Rundown of Problem I an iPad app with a UIImageView inside of a UIScrollView. I want the user to be able to draw on-top of the UIImageView by using a stylus and/or their finger.[详细]
2023-03-23 03:38 分类:问答CGContextAddEllipseInRect to CGImageRef to CGImageMaskCreate to CGContextClipToMask
I haven\'t been able to find one single example on the internets that teaches me how to create a circle on the fly and then use this circle to clip an UIImage.[详细]
2023-03-22 00:35 分类:问答Problem in drawing square in sample app
Hi i am making a sample app in which i wanto create a square for which i used the following code - (void)viewDidLoad {[详细]
2023-03-19 09:13 分类:问答In iOS Development, using Core Graphics and/or Quartz 2D, how can I draw a circle filled with a gradient in such a manner that it looks like a sphere?
So far I have looked at using CGContextDrawLinearGradient() and CGContextDrawRadialGradient(), however, with the former I can\'t figure out how to make the gradient look like a sphere, and with the la[详细]
2023-03-18 08:26 分类:问答What this error is invalid context 0x0?
I wrote the following code in ViewDidLoad // Implement viewDidLoad to do additional setup after loading the view, typicallyfroma nib.[详细]
2023-03-18 05:04 分类:问答CGAffineTransforms on NSViews
I am trying to port some iOS code to Mac OS X. I am having trouble 开发者_开发问答porting this though,[详细]
2023-03-17 06:09 分类:问答How to draw a triangle with QUARTZ 2D?
I\'m developing an iPhone app with 3.1.3 SDK. I\'m trying to draw a triangle with transparent fill an 1px black stroke with this code:[详细]
2023-03-16 20:59 分类:问答RotateCTM makes graphics disappear, Quartz 2D
First off, I am a quartz 2d noob.I have a pie chart, and basically want to make a line coming out of it diagonally, in the northeast quadrant, then go horizontal to the right, and have a label explain[详细]
2023-03-15 20:38 分类:问答Drawing an angle/angular/"Conical"/"Arcing" gradient in Objective-C (IOS) using Core Graphics
I\'m trying to draw a \"conical\"/\"arcing\" gradient (I don\'t know what would be the correct term for this) (Photoshop calls it an \"angle\" gradient —your friendly neighborhood stackoverflow edito[详细]
2023-03-15 07:12 分类:问答