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)
<script type=\"text/javascript\"> var canvas, context, tool, e; var varblurup=0; var varsizeup=1;
I am drawing on a UIview several other subviews. Then in the DrawRect method of this UIView I am drawing a bezier curve.
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:
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
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
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.
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
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
filling a path with a solid color is easy enough: CGPoint aPoint; for (id pointValue in points) { aPoint = [pointValue CGPointValue];