Discover The Secrets Of Drawing Realistic Pencil Portraits WITHOUT Wasting Your Precious Time Going Through Years Of Trials And Errors! Get it now!
If you're going to do custom drawing, don't subclass UIImage, subclass UIView, and add your subclass view to wherever you want the custom drawing to be. Do all of your drawing directly in the drawRect: method of UIView. An example of how to draw a diagonal blue line: (void) drawRect:(CGRect)rect { CGContextRef g = UIGraphicsGetCurrentContext(); CGContextMoveToPoint(g,self.frame.origin.
X,self.frame.origin. Y); UIColor blueColor setStroke; CGContextAddLineToPoint(g,CGRectGetMaxX(self. Frame),CGRectGetMaxY(self.
Frame)); }.
If you're going to do custom drawing, don't subclass UIImage, subclass UIView, and add your subclass view to wherever you want the custom drawing to be. Do all of your drawing directly in the -drawRect: method of UIView. An example of how to draw a diagonal blue line: -(void) drawRect:(CGRect)rect { CGContextRef g = UIGraphicsGetCurrentContext(); CGContextMoveToPoint(g,self.frame.origin.
X,self.frame.origin. Y); UIColor blueColor setStroke; CGContextAddLineToPoint(g,CGRectGetMaxX(self. Frame),CGRectGetMaxY(self.
Frame)); }.
I need to do custom drawing code in -drawRect so I subclassed UIImage. How would I initialize my custom UIImage with an image? Say I override the imageName method, what would I need to do in this method?
After initializing can I add it to a UIImageview like so initwithImage:?
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.