drawrect
CGContextSetRGBFillColor is not setting the good color
My problem : the color of the fill in square go from black to full blue (255) with no transition color (darkest blue, dark blue, blue...). It seems that the CGContextSetRGBStroke is additive (WTF Oo)[详细]
2023-01-18 09:48 分类:问答I am not able to draw shapes except for random lines onthe canvas. What will be the code for other options eg any line, rectangle or a triangle?
<script type=\"text/javascript\"> var canvas, context, tool, e; var varblurup=0; var varsizeup=1;[详细]
2023-01-17 21:41 分类:问答Quartz custom drawing and UIViews. Cannot see the quartz drawing
I am drawing on a UIview several other subviews. Then in the DrawRect method of this UIView I am drawing a bezier curve.[详细]
2023-01-16 23:13 分类:问答UIView drawRect drawing lines of wrong width
I\'m trying to add a little red line on the bottom of my UIView. I want the line to be a 1px line. Can someone tell me why the following code:[详细]
2023-01-15 08:23 分类:问答MKAnnotationView drawRect: not getting called
I\'ve implemented a custom annotation derived from MKAnnotation called ContainerAnnotation and a custom annotation view derived from MKAnnotationView with a drawRect: method called ContainerAnnotation[详细]
2023-01-13 13:17 分类:问答What happens in the system when canvas.drawBitmap is called?
I have a scrollable and zoomable map which has a low res copy of the map which is drawn when the zoom scale is small and a tile system when the user zooms in past a certain point. The problem im havin[详细]
2023-01-12 03:33 分类:问答How to properly transform a UIView with a custom drawRect method
I\'ve written a UIView subclass which adds a nice soft shadow underneath a png image. I\'m overriding the drawRect method to draw the image and add the shadow.[详细]
2023-01-07 12:39 分类:问答Performance issue with DrawRect and NSTimer
I\'m trying to make a slot machine animation where the reels spin. to do this, I\'m using drawRect to draw images in a custom class that inherits from UIView. I\'m using an nstimer to update the posit[详细]
2023-01-06 07:01 分类:问答UIScrollView scrolling not proper
I ha开发者_开发百科ve a UIViewController subclass which has the view property set to a UIScrollView subclass (say ProfileScrollView). Now, I have overridden drawRect: method, in which I draw a lot of[详细]
2023-01-06 02:42 分类:问答How to fill a path with gradient in drawRect:?
filling a path with a solid color is easy enough: CGPoint aPoint; for (id pointValue in points) { aPoint = [pointValue CGPointValue];[详细]
2023-01-02 06:20 分类:问答