¡@

Home 

2014/10/15 ¤U¤È 10:04:43

iphone Programming Glossary: brushpattern

Draw lines with Glow effect smoothly in iPad

http://stackoverflow.com/questions/13174862/draw-lines-with-glow-effect-smoothly-in-ipad

code... You can init the UIBezierPath as following UIBezierPath myPath UIBezierPath alloc init myPath.lineWidth 10 brushPattern UIColor redColor This is the color of my stroke Then you have Touch methods which handle and track the coordinates of your.. on screen and also the blend mode. You can try different blend mode and see the result. void drawRect CGRect rect brushPattern setStroke myPath strokeWithBlendMode kCGBlendModeNormal alpha 1.0 also see this below link.. http soulwithmobiletechnology.blogspot.in..

how to convert UIView part as UIImage in iphone application

http://stackoverflow.com/questions/16538102/how-to-convert-uiview-part-as-uiimage-in-iphone-application

image and display in imageview. #import UIKit UIKit.h @interface MyLineDrawingView UIView UIBezierPath myPath UIColor brushPattern @end Implementation Classs #import MyLineDrawingView.h @implementation MyLineDrawingView id initWithFrame CGRect frame self.. whiteColor myPath UIBezierPath alloc init myPath.lineCapStyle kCGLineCapRound myPath.miterLimit 0 myPath.lineWidth 10 brushPattern UIColor redColor return self Only override drawRect if you perform custom drawing. An empty implementation adversely affects.. custom drawing. An empty implementation adversely affects performance during animation. void drawRect CGRect rect brushPattern setStroke myPath strokeWithBlendMode kCGBlendModeNormal alpha 1.0 Drawing code myPath stroke pragma mark Touch Methods void..