OC, oc Language
Introduction
Function
- Draw
- Drawing: lines, triangles, rectangles, circles, and Arcs
- Draw text
- Draw \ generate image (image)
- Read \ generate PDF
- \ Crop an image
- Custom UI controls (usually controls with complicated internal structures)
- Most of the controls in UIKit are drawn by the system.
- Matrix operation (changes all paths shown in the following figure)
- Zoom
- Rotate
- Translation
Introduction
- Z2d belongs to the Core Graphic framework. It is a two-dimensional Drawing Engine that operates directly on layers. It usually obtains the context in-drawRect: method, draw the content to be drawn to the graphic context, then render the layer to the control, and finally close the graphic context.
- -(Void) drawRect :( CGRect) rect. This method is called only once when the interface is to be displayed. To call this method, call the repainting method-(void) setNeedsDisplay.
Common drawing operations
--- Restore content end ---
Introduction
Function
- Draw
- Drawing: lines, triangles, rectangles, circles, and Arcs
- Draw text
- Draw \ generate image (image)
- Read \ generate PDF
- \ Crop an image
- Custom UI controls (usually controls with complicated internal structures)
- Most of the controls in UIKit are drawn by the system.
- Matrix operation (changes all paths shown in the following figure)
- Zoom
- Rotate
- Translation
Introduction
- Z2d belongs to the Core Graphic framework. It is a two-dimensional Drawing Engine that operates directly on layers. It usually obtains the context in-drawRect: method, draw the content to be drawn to the graphic context, then render the layer to the control, and finally close the graphic context.
- -(Void) drawRect :( CGRect) rect. This method is called only once when the interface is to be displayed. To call this method, call the repainting method-(void) setNeedsDisplay.
Common drawing operations